結果
問題 |
No.1366 交換門松列・梅
|
ユーザー |
|
提出日時 | 2021-05-14 13:16:39 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 1,000 ms |
コード長 | 366 bytes |
コンパイル時間 | 165 ms |
コンパイル使用メモリ | 82,668 KB |
実行使用メモリ | 53,968 KB |
最終ジャッジ日時 | 2025-06-20 11:02:32 |
合計ジャッジ時間 | 1,397 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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[i],B[j] = B[j],A[i] if len(set(A)) == 3 and len(set(B)) == 3 and (max(A) == A[1] or min(A) == A[1]) and (max(B) == B[1] or min(B) == B[1]): print("Yes") exit() A[i],B[j] = B[j],A[i] print("No")