結果
| 問題 | No.1366 交換門松列・梅 |
| コンテスト | |
| ユーザー |
nephrologist
|
| 提出日時 | 2021-01-29 21:25:19 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 57 ms / 1,000 ms |
| + 941µs | |
| コード長 | 474 bytes |
| 記録 | |
| コンパイル時間 | 531 ms |
| コンパイル使用メモリ | 95,932 KB |
| 実行使用メモリ | 79,000 KB |
| 最終ジャッジ日時 | 2026-07-12 12:40:11 |
| 合計ジャッジ時間 | 2,156 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
def check(A):
a, b, c = A
if a == b or b == c or c == a:
return False
if b > c and b > a:
return True
if b < c and b < a:
return True
return False
A = list(map(int, input().split()))
B = list(map(int, input().split()))
for i in range(3):
for j in range(3):
AA = A[::]
BB = B[::]
AA[i], BB[j] = BB[j], AA[i]
if check(AA) and check(BB):
print("Yes")
exit()
print("No")
nephrologist