結果

問題 No.1468 Colourful Pastel
ユーザー brthyyjp
提出日時 2021-04-09 15:19:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 125 ms / 1,000 ms
コード長 304 bytes
コンパイル時間 255 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 109,824 KB
最終ジャッジ日時 2024-06-24 22:08:16
合計ジャッジ時間 3,101 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

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