結果
| 問題 | No.1468 Colourful Pastel |
| ユーザー |
ygd.
|
| 提出日時 | 2021-04-07 18:35:10 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 117 ms / 1,000 ms |
| + 407µs | |
| コード長 | 305 bytes |
| 記録 | |
| コンパイル時間 | 235 ms |
| コンパイル使用メモリ | 96,244 KB |
| 実行使用メモリ | 103,308 KB |
| 最終ジャッジ日時 | 2026-07-27 10:59:04 |
| 合計ジャッジ時間 | 4,212 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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.