結果

問題 No.1366 交換門松列・梅
ユーザー へくちゃんへくちゃん
提出日時 2021-02-03 18:36:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 420 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 10,792 KB
実行使用メモリ 7,976 KB
最終ジャッジ日時 2023-09-12 15:28:04
合計ジャッジ時間 1,036 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
7,800 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 17 ms
7,768 KB
testcase_05 AC 16 ms
7,792 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 17 ms
7,840 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 16 ms
7,808 KB
testcase_12 AC 16 ms
7,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

num1 = [int(x) for x in str(input()).split()]
num2 = [int(x) for x in str(input()).split()]

oldnum1 = [int(x) for x in num1]
oldnum2 = [int(x) for x in num2]

num1[1] = oldnum2[1]
num2[1] = oldnum1[1]
if len(list(set(num1))) != len(num1):
    print("Yes")
elif num1.index(min(num1)) == 1 or num1.index(max(num1)) == 1 and num1.index(min(num1)) == 2 or num1.index(max(num1)) == 2 :
    print("Yes")
else:
    print("No")
0