結果

問題 No.1183 コイン遊び
ユーザー もりをもりを
提出日時 2020-08-22 13:04:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 470 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 389 ms
コンパイル使用メモリ 86,564 KB
実行使用メモリ 272,952 KB
最終ジャッジ日時 2023-08-05 09:45:55
合計ジャッジ時間 13,453 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,128 KB
testcase_01 AC 71 ms
71,008 KB
testcase_02 AC 70 ms
71,264 KB
testcase_03 AC 70 ms
71,084 KB
testcase_04 AC 69 ms
71,224 KB
testcase_05 AC 72 ms
71,296 KB
testcase_06 AC 71 ms
71,448 KB
testcase_07 AC 70 ms
71,108 KB
testcase_08 AC 74 ms
75,676 KB
testcase_09 AC 76 ms
75,868 KB
testcase_10 AC 83 ms
77,792 KB
testcase_11 AC 102 ms
93,372 KB
testcase_12 AC 370 ms
259,532 KB
testcase_13 AC 315 ms
222,200 KB
testcase_14 AC 432 ms
271,936 KB
testcase_15 AC 470 ms
272,952 KB
testcase_16 AC 452 ms
272,676 KB
testcase_17 AC 449 ms
272,456 KB
testcase_18 AC 451 ms
272,544 KB
testcase_19 AC 451 ms
272,472 KB
testcase_20 AC 457 ms
272,504 KB
testcase_21 AC 418 ms
272,328 KB
testcase_22 AC 422 ms
272,292 KB
testcase_23 AC 417 ms
272,488 KB
testcase_24 AC 418 ms
272,100 KB
testcase_25 AC 455 ms
272,540 KB
testcase_26 AC 449 ms
272,728 KB
testcase_27 AC 455 ms
272,540 KB
testcase_28 AC 449 ms
272,392 KB
testcase_29 AC 413 ms
272,288 KB
testcase_30 AC 447 ms
272,720 KB
testcase_31 AC 453 ms
272,640 KB
testcase_32 AC 445 ms
272,564 KB
testcase_33 AC 449 ms
272,568 KB
testcase_34 AC 441 ms
272,536 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