結果
| 問題 | No.1366 交換門松列・梅 |
| コンテスト | |
| ユーザー |
hir355
|
| 提出日時 | 2021-01-29 21:23:26 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 1,000 ms |
| コード長 | 423 bytes |
| 記録 | |
| コンパイル時間 | 202 ms |
| コンパイル使用メモリ | 82,472 KB |
| 実行使用メモリ | 53,324 KB |
| 最終ジャッジ日時 | 2025-06-20 10:55:29 |
| 合計ジャッジ時間 | 1,323 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
def is_kadomatsu(a, b, c):
if a != b != c and a != c and (a < b > c or a > b < c):
return True
else:
return False
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 is_kadomatsu(*a) and is_kadomatsu(*b):
print('Yes')
exit(0)
a[i], b[j] = b[j], a[i]
print('No')
hir355