結果
問題 |
No.1468 Colourful Pastel
|
ユーザー |
|
提出日時 | 2021-04-04 15:04:23 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 100 ms / 1,000 ms |
コード長 | 303 bytes |
コンパイル時間 | 646 ms |
コンパイル使用メモリ | 82,236 KB |
実行使用メモリ | 98,560 KB |
最終ジャッジ日時 | 2024-12-27 22:46:04 |
合計ジャッジ時間 | 2,957 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 |
ソースコード
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)