結果
| 問題 | No.1366 交換門松列・梅 |
| コンテスト | |
| ユーザー |
tktk_snsn
|
| 提出日時 | 2021-01-29 21:28:50 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 92 ms / 1,000 ms |
| + 232µs | |
| コード長 | 531 bytes |
| 記録 | |
| コンパイル時間 | 647 ms |
| コンパイル使用メモリ | 21,412 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-07-12 12:42:48 |
| 合計ジャッジ時間 | 2,957 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
A = list(map(int, input().split()))
B = list(map(int, input().split()))
def isKadomatsu(A):
a, b, c = A
if a == b or a == c or b == c:
return False
if b == min(a, b, c):
return True
if b == max(a, b, c):
return True
return False
def isOK(X, Y):
return isKadomatsu(X) and isKadomatsu(Y)
ans = False
for i in range(3):
for j in range(3):
A[i], B[j] = B[j], A[i]
ans |= isOK(A, B)
A[i], B[j] = B[j], A[i]
if ans:
print("Yes")
else:
print("No")
tktk_snsn