結果
| 問題 |
No.1941 CHECKER×CHECKER(1)
|
| コンテスト | |
| ユーザー |
liny_tail
|
| 提出日時 | 2022-12-30 18:18:06 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 371 bytes |
| コンパイル時間 | 264 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-25 17:14:14 |
| 合計ジャッジ時間 | 1,516 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 12 |
ソースコード
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(S[i])
print(['No', 'Yes'][xor(S[0], S[1]) and xor(S[1], S[2])])
liny_tail