結果
| 問題 |
No.1468 Colourful Pastel
|
| ユーザー |
|
| 提出日時 | 2021-04-30 17:17:43 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 94 ms / 1,000 ms |
| コード長 | 474 bytes |
| コンパイル時間 | 163 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 102,400 KB |
| 最終ジャッジ日時 | 2024-07-18 14:13:29 |
| 合計ジャッジ時間 | 2,765 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 |
ソースコード
import sys
import collections
def resolve():
tmp = str2d()
adict = collections.defaultdict(int)
bdict = collections.defaultdict(int)
for color in tmp[1]:
adict[color]+=1
for color in tmp[2]:
bdict[color]+=1
for color in adict:
if adict[color] != bdict[color]:
print(color)
return
def str1d():return sys.stdin.read().splitlines()
def str2d():return [list(s.split()) for s in str1d()]
resolve()