結果

問題 No.1183 コイン遊び
ユーザー fukafukatanifukafukatani
提出日時 2020-08-31 22:36:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 370 ms / 2,000 ms
コード長 247 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 38,152 KB
最終ジャッジ日時 2024-04-28 11:23:18
合計ジャッジ時間 9,533 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,368 KB
testcase_01 AC 26 ms
10,496 KB
testcase_02 AC 28 ms
10,496 KB
testcase_03 AC 28 ms
10,496 KB
testcase_04 AC 28 ms
10,368 KB
testcase_05 AC 26 ms
10,496 KB
testcase_06 AC 25 ms
10,496 KB
testcase_07 AC 26 ms
10,368 KB
testcase_08 AC 26 ms
10,368 KB
testcase_09 AC 28 ms
10,624 KB
testcase_10 AC 35 ms
10,880 KB
testcase_11 AC 47 ms
12,104 KB
testcase_12 AC 217 ms
27,644 KB
testcase_13 AC 206 ms
25,836 KB
testcase_14 AC 305 ms
36,224 KB
testcase_15 AC 326 ms
37,884 KB
testcase_16 AC 344 ms
38,140 KB
testcase_17 AC 353 ms
38,144 KB
testcase_18 AC 341 ms
37,900 KB
testcase_19 AC 345 ms
38,016 KB
testcase_20 AC 358 ms
38,152 KB
testcase_21 AC 326 ms
38,144 KB
testcase_22 AC 324 ms
37,896 KB
testcase_23 AC 260 ms
38,016 KB
testcase_24 AC 322 ms
37,892 KB
testcase_25 AC 333 ms
38,016 KB
testcase_26 AC 336 ms
37,892 KB
testcase_27 AC 321 ms
38,148 KB
testcase_28 AC 322 ms
38,148 KB
testcase_29 AC 370 ms
37,888 KB
testcase_30 AC 339 ms
38,144 KB
testcase_31 AC 326 ms
37,888 KB
testcase_32 AC 338 ms
38,020 KB
testcase_33 AC 330 ms
38,016 KB
testcase_34 AC 324 ms
37,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.buffer.readline

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

ans = 0
changing = False
for a, b in zip(A, B):
    if not changing and a != b:
        ans += 1
    changing = a != b

print(ans)
0