結果
| 問題 | No.1366 交換門松列・梅 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-05-13 17:28:23 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 1,000 ms |
| + 200µs | |
| コード長 | 366 bytes |
| 記録 | |
| コンパイル時間 | 253 ms |
| コンパイル使用メモリ | 95,988 KB |
| 実行使用メモリ | 79,112 KB |
| 最終ジャッジ日時 | 2026-07-12 13:02:44 |
| 合計ジャッジ時間 | 2,150 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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')