結果

問題 No.1468 Colourful Pastel
ユーザー gorugo30gorugo30
提出日時 2021-04-04 15:04:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 126 ms / 1,000 ms
コード長 303 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 100,080 KB
最終ジャッジ日時 2023-08-27 18:07:12
合計ジャッジ時間 3,865 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
99,344 KB
testcase_01 AC 125 ms
99,232 KB
testcase_02 AC 78 ms
71,496 KB
testcase_03 AC 74 ms
71,532 KB
testcase_04 AC 76 ms
71,448 KB
testcase_05 AC 75 ms
71,192 KB
testcase_06 AC 74 ms
71,380 KB
testcase_07 AC 75 ms
71,388 KB
testcase_08 AC 73 ms
71,292 KB
testcase_09 AC 74 ms
71,260 KB
testcase_10 AC 72 ms
71,264 KB
testcase_11 AC 74 ms
71,588 KB
testcase_12 AC 75 ms
71,284 KB
testcase_13 AC 74 ms
71,320 KB
testcase_14 AC 73 ms
71,328 KB
testcase_15 AC 74 ms
71,280 KB
testcase_16 AC 76 ms
71,132 KB
testcase_17 AC 74 ms
71,256 KB
testcase_18 AC 73 ms
71,248 KB
testcase_19 AC 73 ms
71,136 KB
testcase_20 AC 75 ms
71,256 KB
testcase_21 AC 75 ms
71,256 KB
testcase_22 AC 72 ms
71,128 KB
testcase_23 AC 75 ms
71,280 KB
testcase_24 AC 76 ms
71,392 KB
testcase_25 AC 75 ms
71,284 KB
testcase_26 AC 75 ms
71,284 KB
testcase_27 AC 123 ms
100,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

cs = ["Red", "Orange", "Yellow", "Green", "Cyan", "Blue", "Violet"]
cnt = {cs[i]: 0 for i in range(7)}

N = int(input())
A = list(input().split())
B = list(input().split())

for i in range(N - 1):
    cnt[A[i]] += 1
    cnt[B[i]] -= 1
cnt[A[N - 1]] += 1

for c in cs:
    if cnt[c] > 0:
        print(c)
0