結果
| 問題 | No.1468 Colourful Pastel |
| ユーザー |
👑 |
| 提出日時 | 2021-08-05 18:00:02 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 116 ms / 1,000 ms |
| + 162µs | |
| コード長 | 244 bytes |
| 記録 | |
| コンパイル時間 | 293 ms |
| コンパイル使用メモリ | 96,368 KB |
| 実行使用メモリ | 96,232 KB |
| 最終ジャッジ日時 | 2026-08-28 20:43:48 |
| 合計ジャッジ時間 | 4,387 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
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