結果

問題 No.1366 交換門松列・梅
ユーザー otsunekootsuneko
提出日時 2021-05-14 13:09:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 295 bytes
コンパイル時間 230 ms
コンパイル使用メモリ 82,492 KB
実行使用メモリ 54,024 KB
最終ジャッジ日時 2024-04-09 18:24:45
合計ジャッジ時間 1,388 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,644 KB
testcase_01 AC 36 ms
52,152 KB
testcase_02 AC 36 ms
52,272 KB
testcase_03 AC 37 ms
52,420 KB
testcase_04 WA -
testcase_05 AC 36 ms
52,068 KB
testcase_06 AC 36 ms
52,428 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 36 ms
52,764 KB
testcase_11 AC 37 ms
52,836 KB
testcase_12 AC 35 ms
51,812 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A = list(map(int,input().split()))
B = list(map(int,input().split()))

if sorted(A) == sorted(B):
    print("No")
    exit()

for a in A:
    if B.count(a) > 1:
        print("No")
        exit()
for b in B:
    if A.count(B) > 1:
        print("No")
        exit()

print("Yes")
0