結果
| 問題 |
No.1366 交換門松列・梅
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-01-20 20:53:30 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 1,000 ms |
| コード長 | 558 bytes |
| コンパイル時間 | 122 ms |
| コンパイル使用メモリ | 12,160 KB |
| 実行使用メモリ | 10,240 KB |
| 最終ジャッジ日時 | 2025-06-20 11:04:52 |
| 合計ジャッジ時間 | 1,275 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 13 |
ソースコード
A = list(map(int, input().split()))
B = list(map(int, input().split()))
for i in range(3):
for j in range(3):
Ac = A[:]
Bc = B[:]
Ac[i], Bc[j] = Bc[j], Ac[i]
if Ac[0] != Ac[1] and Ac[1] != Ac[2] and Ac[2] != Ac[0]:
if Bc[0] != Bc[1] and Bc[1] != Bc[2] and Bc[2] != Bc[0]:
if Ac.index(min(Ac)) == 1 or Ac.index(max(Ac)) == 1:
if Bc.index(min(Bc)) == 1 or Bc.index(max(Bc)) == 1:
print("Yes")
exit()
print("No")