結果

問題 No.1183 コイン遊び
ユーザー もりをもりを
提出日時 2020-08-22 13:04:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 395 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 441 ms
コンパイル使用メモリ 82,572 KB
実行使用メモリ 276,600 KB
最終ジャッジ日時 2024-04-23 07:19:57
合計ジャッジ時間 11,424 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,132 KB
testcase_01 AC 34 ms
53,156 KB
testcase_02 AC 34 ms
53,296 KB
testcase_03 AC 34 ms
52,788 KB
testcase_04 AC 33 ms
52,648 KB
testcase_05 AC 36 ms
53,300 KB
testcase_06 AC 34 ms
53,016 KB
testcase_07 AC 37 ms
52,324 KB
testcase_08 AC 36 ms
59,768 KB
testcase_09 AC 36 ms
59,032 KB
testcase_10 AC 47 ms
69,032 KB
testcase_11 AC 62 ms
88,984 KB
testcase_12 AC 318 ms
243,876 KB
testcase_13 AC 288 ms
220,568 KB
testcase_14 AC 378 ms
269,448 KB
testcase_15 AC 385 ms
275,920 KB
testcase_16 AC 394 ms
276,596 KB
testcase_17 AC 388 ms
276,288 KB
testcase_18 AC 382 ms
275,832 KB
testcase_19 AC 387 ms
275,984 KB
testcase_20 AC 391 ms
276,224 KB
testcase_21 AC 359 ms
275,788 KB
testcase_22 AC 356 ms
276,600 KB
testcase_23 AC 352 ms
275,756 KB
testcase_24 AC 354 ms
276,144 KB
testcase_25 AC 384 ms
276,016 KB
testcase_26 AC 393 ms
276,028 KB
testcase_27 AC 390 ms
276,296 KB
testcase_28 AC 388 ms
275,992 KB
testcase_29 AC 362 ms
276,068 KB
testcase_30 AC 388 ms
275,836 KB
testcase_31 AC 386 ms
275,732 KB
testcase_32 AC 389 ms
276,020 KB
testcase_33 AC 391 ms
276,528 KB
testcase_34 AC 395 ms
275,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import groupby
n = int(input())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
p = [i == j for i, j in zip(a, b)]
res = 0
for k, v in groupby(p):
    if k:
        continue
    res += 1
print(res)
0