結果
| 問題 |
No.1366 交換門松列・梅
|
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2021-05-16 22:22:43 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 1,000 ms |
| コード長 | 484 bytes |
| コンパイル時間 | 92 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,368 KB |
| 最終ジャッジ日時 | 2025-06-20 11:02:37 |
| 合計ジャッジ時間 | 1,136 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
def kadomatsu(aa):
a, b, c = aa[0], aa[1], aa[2]
res = True
if a == b or b == c or c == a:
res = False
if b != max(a, b, c) and b != min(a, b, c):
res = False
return res
a = list(map(int, input().split()))
b = list(map(int, input().split()))
flg = 1
for i in range(3):
for j in range(3):
a[i], b[j] = b[j], a[i]
if kadomatsu(a) and kadomatsu(b):
flg = 0
a[i], b[j] = b[j], a[i]
print(["Yes", "No"][flg])
toshiro_yanagi