一些逻辑训练的谜题:娜塔莎、十二点钟和茶
1179 个评论
できました。結論から言いうとあります。以下証明過程
Wentやorの使い方を見逃して、厳密には使い方が問題ありますが。
分かりやすくするためにしました。「そこを理解してくれると嬉しいです。」
If(王明went加拿大){王明went俄罗斯 or 美国}
If(!王明went加拿大){王明went波兰or中国)}
If(王明went中国){王明went英国 and (王明went美国 or 波兰)}
If(王明went波兰){ !王明went瑞典 and (王明went俄罗斯 or 捷克)}
If(王明went美国){王明went瑞典 or俄罗斯)}
If(王明went捷克){王明went加拿大)}
If(王明went俄罗斯){王明went捷克)}
If(!王明went俄罗斯){王明went美国and瑞典}
加拿大3 俄罗斯5 美国4 波兰3 中国2 捷克3 瑞典3 英国1
If(王明went加拿大){王明went俄罗斯 or 美国}
If(王明went加拿大and俄罗斯and !王明went美国){ 王明went捷克}
If(王明went加拿大and俄罗斯and捷克 !王明went美国){ !王明went加拿大 break;}
If(王明went加拿大and美国 and !王明went俄罗斯){ 王明went瑞典 or俄罗斯}
If(王明went加拿大and美国and瑞典 and !王明went俄罗斯){王明went美国and瑞典 return;}
If(王明went加拿大){王明went瑞典}
If(!王明went加拿大 and 王明went中国){王明went英国 and (王明went美国 or 波兰)}
If(!王明went加拿大 and 王明went中国and英国and美国 ){王明went瑞典 or俄罗斯}
If(!王明went加拿大 and 王明went中国and英国and美国and 俄罗斯){王明went捷克 }
If(!王明went加拿大 and 王明went中国and英国and美国and 俄罗斯and捷克){王明went加拿大 break;}
If(!王明went加拿大 and 王明went中国){ 王明went瑞典 }
If(!王明went加拿大 and 王明went波兰 ){ !王明went瑞典 and (王明went俄罗斯 or 捷克) }
If((!王明went加拿大and瑞典)and 王明went波兰and俄罗斯){ 王明went捷克 break; }
If((!王明went加拿大and瑞典)and 王明went波兰and捷克){王明went加拿大break; }
故にWhatever王明went加拿大 王明 must went瑞典。
王明went加拿大and美国and瑞典
或いは
王明went中国and英国and美国and瑞典
だから王明も必ず美国に行ったことある。
Wentやorの使い方を見逃して、厳密には使い方が問題ありますが。
分かりやすくするためにしました。「そこを理解してくれると嬉しいです。」
If(王明went加拿大){王明went俄罗斯 or 美国}
If(!王明went加拿大){王明went波兰or中国)}
If(王明went中国){王明went英国 and (王明went美国 or 波兰)}
If(王明went波兰){ !王明went瑞典 and (王明went俄罗斯 or 捷克)}
If(王明went美国){王明went瑞典 or俄罗斯)}
If(王明went捷克){王明went加拿大)}
If(王明went俄罗斯){王明went捷克)}
If(!王明went俄罗斯){王明went美国and瑞典}
加拿大3 俄罗斯5 美国4 波兰3 中国2 捷克3 瑞典3 英国1
If(王明went加拿大){王明went俄罗斯 or 美国}
If(王明went加拿大and俄罗斯and !王明went美国){ 王明went捷克}
If(王明went加拿大and俄罗斯and捷克 !王明went美国){ !王明went加拿大 break;}
If(王明went加拿大and美国 and !王明went俄罗斯){ 王明went瑞典 or俄罗斯}
If(王明went加拿大and美国and瑞典 and !王明went俄罗斯){王明went美国and瑞典 return;}
If(王明went加拿大){王明went瑞典}
If(!王明went加拿大 and 王明went中国){王明went英国 and (王明went美国 or 波兰)}
If(!王明went加拿大 and 王明went中国and英国and美国 ){王明went瑞典 or俄罗斯}
If(!王明went加拿大 and 王明went中国and英国and美国and 俄罗斯){王明went捷克 }
If(!王明went加拿大 and 王明went中国and英国and美国and 俄罗斯and捷克){王明went加拿大 break;}
If(!王明went加拿大 and 王明went中国){ 王明went瑞典 }
If(!王明went加拿大 and 王明went波兰 ){ !王明went瑞典 and (王明went俄罗斯 or 捷克) }
If((!王明went加拿大and瑞典)and 王明went波兰and俄罗斯){ 王明went捷克 break; }
If((!王明went加拿大and瑞典)and 王明went波兰and捷克){王明went加拿大break; }
故にWhatever王明went加拿大 王明 must went瑞典。
王明went加拿大and美国and瑞典
或いは
王明went中国and英国and美国and瑞典
だから王明も必ず美国に行ったことある。
