結果
問題 |
No.1366 交換門松列・梅
|
ユーザー |
|
提出日時 | 2022-05-13 17:28:23 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 41 ms / 1,000 ms |
コード長 | 366 bytes |
コンパイル時間 | 214 ms |
コンパイル使用メモリ | 82,044 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2025-06-20 11:05:26 |
合計ジャッジ時間 | 1,496 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
a = list(map(int,input().split())) b = list(map(int,input().split())) def check(a): s = set(a) return len(s) == 3 and (a[1] == min(a) or a[1] == max(a)) import sys for i in range(3): for j in range(3): a[i],b[j] = b[j],a[i] if check(a) and check(b): print('Yes') exit() a[i],b[j] = b[j],a[i] print('No')