結果

問題 No.1468 Colourful Pastel
ユーザー 萩3
提出日時 2021-04-30 17:17:43
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 65 ms / 1,000 ms
コード長 474 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 283 ms
コンパイル使用メモリ 85,504 KB
実行使用メモリ 196,608 KB
最終ジャッジ日時 2026-04-02 07:41:24
合計ジャッジ時間 2,285 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 25
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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()
0