結果

問題 No.1468 Colourful Pastel
ユーザー nessien
提出日時 2024-12-13 15:17:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 100 ms / 1,000 ms
コード長 218 bytes
コンパイル時間 228 ms
コンパイル使用メモリ 82,592 KB
実行使用メモリ 98,832 KB
最終ジャッジ日時 2024-12-13 15:17:28
合計ジャッジ時間 2,995 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter

N = int(input())
A = list(input().split())
B = list(input().split())

c1 = Counter(A)
c2 = Counter(B)

ans = 0
for k,v in c1.items():
	if c2[k] == 0 or c2[k] != v:
		ans = k 
print(ans)
0