結果

問題 No.1468 Colourful Pastel
ユーザー rin204
提出日時 2021-08-05 18:00:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 99 ms / 1,000 ms
コード長 244 bytes
コンパイル時間 249 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 99,084 KB
最終ジャッジ日時 2024-09-16 15:21:54
合計ジャッジ時間 2,504 ms
ジャッジサーバーID
(参考情報)
judge5 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict as dd

n = int(input())
alst = list(input().split())
blst = list(input().split())
cnt = dd(int)
for b in blst:
    cnt[b] += 1
for a in alst:
    if cnt[a] == 0:
        print(a)
        break
    cnt[a] -= 1
0