結果
問題 |
No.1941 CHECKER×CHECKER(1)
|
ユーザー |
![]() |
提出日時 | 2022-12-30 18:18:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 357 bytes |
コンパイル時間 | 226 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-11-25 17:14:37 |
合計ジャッジ時間 | 1,301 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 WA * 1 |
ソースコード
def xor(lst1, lst2): tmp = sum([x ^ y for x, y in zip(lst1, lst2)]) return True if tmp == 3 else False S = [''] * 3 S[0] = input().strip() S[1] = input().strip() S[2] = input().strip() for i in range(3): S[i] = S[i].replace('#', '0').replace('.', '1') S[i] = [int(j) for j in list(S[i])] print(['No', 'Yes'][xor(S[0], S[1]) and xor(S[1], S[2])])