結果

問題 No.1468 Colourful Pastel
ユーザー brthyyjpbrthyyjp
提出日時 2021-04-09 15:19:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 154 ms / 1,000 ms
コード長 304 bytes
コンパイル時間 2,571 ms
コンパイル使用メモリ 86,864 KB
実行使用メモリ 104,180 KB
最終ジャッジ日時 2023-09-07 03:29:35
合計ジャッジ時間 5,683 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 154 ms
103,568 KB
testcase_01 AC 151 ms
103,468 KB
testcase_02 AC 90 ms
71,412 KB
testcase_03 AC 92 ms
71,756 KB
testcase_04 AC 94 ms
71,596 KB
testcase_05 AC 90 ms
71,584 KB
testcase_06 AC 89 ms
71,568 KB
testcase_07 AC 90 ms
71,708 KB
testcase_08 AC 89 ms
71,556 KB
testcase_09 AC 91 ms
71,668 KB
testcase_10 AC 88 ms
71,608 KB
testcase_11 AC 90 ms
71,592 KB
testcase_12 AC 93 ms
71,288 KB
testcase_13 AC 93 ms
71,568 KB
testcase_14 AC 90 ms
71,540 KB
testcase_15 AC 91 ms
71,812 KB
testcase_16 AC 92 ms
71,600 KB
testcase_17 AC 91 ms
71,452 KB
testcase_18 AC 90 ms
71,496 KB
testcase_19 AC 90 ms
71,704 KB
testcase_20 AC 89 ms
71,768 KB
testcase_21 AC 89 ms
71,292 KB
testcase_22 AC 92 ms
71,732 KB
testcase_23 AC 91 ms
71,660 KB
testcase_24 AC 90 ms
71,664 KB
testcase_25 AC 89 ms
71,816 KB
testcase_26 AC 93 ms
71,712 KB
testcase_27 AC 150 ms
104,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

from collections import Counter
CA = Counter(A)
CB = Counter(B)

for k, v in CA.items():
    if k not in CB:
        print(k)
        exit()
    else:
        if CB[k] != v:
            print(k)
            exit()
0