結果

問題 No.1468 Colourful Pastel
ユーザー ygd.ygd.
提出日時 2021-04-07 18:35:10
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 162 ms / 1,000 ms
コード長 305 bytes
コンパイル時間 501 ms
コンパイル使用メモリ 86,908 KB
実行使用メモリ 111,640 KB
最終ジャッジ日時 2023-09-05 02:16:43
合計ジャッジ時間 4,742 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 155 ms
111,048 KB
testcase_01 AC 162 ms
111,228 KB
testcase_02 AC 92 ms
71,684 KB
testcase_03 AC 93 ms
71,676 KB
testcase_04 AC 93 ms
71,668 KB
testcase_05 AC 91 ms
71,644 KB
testcase_06 AC 92 ms
71,608 KB
testcase_07 AC 94 ms
71,836 KB
testcase_08 AC 95 ms
71,532 KB
testcase_09 AC 92 ms
71,716 KB
testcase_10 AC 90 ms
71,748 KB
testcase_11 AC 88 ms
71,464 KB
testcase_12 AC 91 ms
71,740 KB
testcase_13 AC 90 ms
71,720 KB
testcase_14 AC 91 ms
71,664 KB
testcase_15 AC 91 ms
71,668 KB
testcase_16 AC 90 ms
71,724 KB
testcase_17 AC 92 ms
71,716 KB
testcase_18 AC 92 ms
71,400 KB
testcase_19 AC 92 ms
71,648 KB
testcase_20 AC 92 ms
71,684 KB
testcase_21 AC 90 ms
71,644 KB
testcase_22 AC 90 ms
71,688 KB
testcase_23 AC 92 ms
71,516 KB
testcase_24 AC 92 ms
71,760 KB
testcase_25 AC 91 ms
71,512 KB
testcase_26 AC 92 ms
71,712 KB
testcase_27 AC 155 ms
111,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict

N = int(input())
A = list(map(str,input().split()))
B = list(map(str,input().split()))
Adic = defaultdict(int)
for i in range(N):
  word = A[i]
  Adic[word] += 1
for i in range(N-1):
  word = B[i]
  Adic[word] -= 1
for x in Adic.keys():
  if Adic[x] != 0:
    print(x)
0