Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有三个人(亚历克斯、布鲁克和科迪),其中一个是骑士,一个是流氓,一个是间谍。骑士总是说真话,流氓总是撒谎,间谍要么撒谎要么说真话. 亚历克斯说:“科迪是个无赖。” 布鲁克说:“亚历克斯是个骑士。” 科迪说:“我是间谍。” 谁是骑士,谁是无赖,谁是间谍?通过 prolog clpb 解决这个难题