結果
| 問題 | No.1366 交換門松列・梅 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-01-29 22:15:32 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 1,000 ms |
| + 51µs | |
| コード長 | 368 bytes |
| 記録 | |
| コンパイル時間 | 286 ms |
| コンパイル使用メモリ | 96,112 KB |
| 実行使用メモリ | 79,060 KB |
| 最終ジャッジ日時 | 2026-07-12 12:45:04 |
| 合計ジャッジ時間 | 2,175 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
A = list(map(int,input().split()))
B = list(map(int,input().split()))
for i in range(3):
for j in range(3):
a = A.copy()
b = B.copy()
a[i],b[j] = b[j],a[i]
if len(set(a)) == 3 and len(set(b)) == 3 and (min(a) == a[1] or max(a) == a[1]) and (min(b) == b[1] or max(b) == b[1]):
print("Yes")
exit()
print("No")