【文件属性】:
文件名称:爱因斯坦难题C语言解法.rar
文件大小:154KB
文件格式:RAR
更新时间:2022-09-03 03:55:11
VisualC++ 算法求解
爱因斯坦难题C语言解法
1、 在一条街上,有5座房子,喷了5种颜色。
2、 每个房里住着不同国籍的人
3、 每个人喝不同的饮料,抽不同品牌的香烟,养不同的宠物
约束条件:
1、 英国人住红色房子
2、 瑞典人养狗
3、 丹麦人喝茶
4、 绿色房子在白色房子左面
5、 绿色房子主人喝咖啡
6、 抽Pall Mall 香烟的人养鸟
7、 黄色房子主人抽Dunhill 香烟
8、 住在中间房子的人喝牛奶
9、 挪威人住第一间房
10、抽Blends香烟的人住在养猫的人隔壁
11、养马的人住抽Dunhill 香烟的人隔壁
12、抽Blue Master的人喝啤酒
13、德国人抽Prince香烟
14、挪威人住蓝色房子隔壁
15、抽Blends香烟的人有一个喝水的邻居
问题是:谁养鱼?
【文件预览】:
爱因斯坦难题C语言解法
----StdAfx.cpp(300B)
----EinsteinLogic.opt(53KB)
----爱因斯坦难题.txt(588B)
----EinsteinLogic.plg(1KB)
----EinsteinLogic.ncb(49KB)
----EinsteinLogic.cpp(10KB)
----Debug()
--------vc60.pdb(52KB)
--------vc60.idb(41KB)
--------EinsteinLogic.ilk(276KB)
--------EinsteinLogic.pdb(401KB)
--------EinsteinLogic.obj(21KB)
--------StdAfx.obj(2KB)
--------EinsteinLogic.exe(152KB)
----ReadMe.txt(1KB)
----EinsteinLogic.dsw(551B)
----StdAfx.h(769B)
----爱因斯坦难题-答案.txt(2KB)
----EinsteinLogic.dsp(5KB)