結果
| 問題 |
No.1468 Colourful Pastel
|
| ユーザー |
ygd.
|
| 提出日時 | 2021-04-07 18:35:10 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 110 ms / 1,000 ms |
| コード長 | 305 bytes |
| コンパイル時間 | 247 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 103,680 KB |
| 最終ジャッジ日時 | 2024-06-22 23:11:13 |
| 合計ジャッジ時間 | 2,564 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
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)
ygd.