結果

問題 No.1468 Colourful Pastel
ユーザー NatsubiSoganNatsubiSogan
提出日時 2021-04-11 10:35:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 74 ms / 1,000 ms
コード長 190 bytes
コンパイル時間 106 ms
コンパイル使用メモリ 10,628 KB
実行使用メモリ 24,436 KB
最終ジャッジ日時 2023-09-09 13:30:14
合計ジャッジ時間 2,697 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
24,108 KB
testcase_01 AC 73 ms
24,132 KB
testcase_02 AC 18 ms
8,576 KB
testcase_03 AC 18 ms
8,480 KB
testcase_04 AC 18 ms
8,540 KB
testcase_05 AC 19 ms
8,388 KB
testcase_06 AC 18 ms
8,372 KB
testcase_07 AC 19 ms
8,460 KB
testcase_08 AC 18 ms
8,536 KB
testcase_09 AC 18 ms
8,460 KB
testcase_10 AC 19 ms
8,492 KB
testcase_11 AC 18 ms
8,528 KB
testcase_12 AC 18 ms
8,552 KB
testcase_13 AC 18 ms
8,432 KB
testcase_14 AC 18 ms
8,520 KB
testcase_15 AC 19 ms
8,556 KB
testcase_16 AC 19 ms
8,568 KB
testcase_17 AC 18 ms
8,420 KB
testcase_18 AC 18 ms
8,468 KB
testcase_19 AC 18 ms
8,472 KB
testcase_20 AC 18 ms
8,576 KB
testcase_21 AC 18 ms
8,452 KB
testcase_22 AC 18 ms
8,452 KB
testcase_23 AC 18 ms
8,476 KB
testcase_24 AC 18 ms
8,356 KB
testcase_25 AC 18 ms
8,512 KB
testcase_26 AC 18 ms
8,532 KB
testcase_27 AC 66 ms
24,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter
n = int(input())
a = input().split()
b = input().split()
ca, cb = Counter(a), Counter(b)
for k, v in ca.items():
    if v - cb[k] == 1:
        exit(print(k))
0