結果

問題 No.1183 コイン遊び
ユーザー NagisaNagisa
提出日時 2020-08-22 17:18:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 660 ms / 2,000 ms
コード長 235 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 36,276 KB
最終ジャッジ日時 2024-04-23 11:17:50
合計ジャッジ時間 16,281 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,624 KB
testcase_01 AC 29 ms
10,624 KB
testcase_02 AC 30 ms
10,624 KB
testcase_03 AC 32 ms
10,624 KB
testcase_04 AC 30 ms
10,624 KB
testcase_05 AC 30 ms
10,624 KB
testcase_06 AC 29 ms
10,624 KB
testcase_07 AC 30 ms
10,624 KB
testcase_08 AC 30 ms
10,624 KB
testcase_09 AC 31 ms
10,752 KB
testcase_10 AC 41 ms
11,264 KB
testcase_11 AC 66 ms
12,472 KB
testcase_12 AC 406 ms
26,364 KB
testcase_13 AC 364 ms
24,628 KB
testcase_14 AC 604 ms
34,352 KB
testcase_15 AC 636 ms
36,128 KB
testcase_16 AC 639 ms
36,012 KB
testcase_17 AC 637 ms
36,144 KB
testcase_18 AC 637 ms
36,144 KB
testcase_19 AC 640 ms
36,188 KB
testcase_20 AC 637 ms
36,180 KB
testcase_21 AC 590 ms
36,272 KB
testcase_22 AC 581 ms
36,060 KB
testcase_23 AC 591 ms
36,140 KB
testcase_24 AC 591 ms
36,144 KB
testcase_25 AC 633 ms
36,256 KB
testcase_26 AC 640 ms
36,140 KB
testcase_27 AC 635 ms
36,000 KB
testcase_28 AC 637 ms
36,276 KB
testcase_29 AC 582 ms
36,148 KB
testcase_30 AC 660 ms
36,144 KB
testcase_31 AC 638 ms
36,140 KB
testcase_32 AC 632 ms
36,140 KB
testcase_33 AC 635 ms
35,924 KB
testcase_34 AC 638 ms
36,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

f = 0
ans = 0
for k in range(N):
    if A[k] != B[k]:
        if f == 0:
            ans += 1
            f = 1
    else:
        f = 0
print(ans)
0