結果

問題 No.1183 コイン遊び
ユーザー Tako_zoiTako_zoi
提出日時 2020-08-22 13:11:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 660 ms / 2,000 ms
コード長 259 bytes
コンパイル時間 159 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 40,104 KB
最終ジャッジ日時 2024-04-23 07:31:48
合計ジャッジ時間 16,508 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,624 KB
testcase_01 AC 31 ms
10,880 KB
testcase_02 AC 30 ms
10,880 KB
testcase_03 AC 30 ms
10,752 KB
testcase_04 AC 31 ms
10,752 KB
testcase_05 AC 30 ms
10,752 KB
testcase_06 AC 31 ms
10,880 KB
testcase_07 AC 31 ms
10,880 KB
testcase_08 AC 29 ms
10,880 KB
testcase_09 AC 33 ms
10,880 KB
testcase_10 AC 42 ms
11,264 KB
testcase_11 AC 68 ms
12,488 KB
testcase_12 AC 415 ms
29,124 KB
testcase_13 AC 370 ms
27,068 KB
testcase_14 AC 596 ms
34,488 KB
testcase_15 AC 652 ms
39,980 KB
testcase_16 AC 640 ms
36,144 KB
testcase_17 AC 642 ms
36,068 KB
testcase_18 AC 640 ms
36,156 KB
testcase_19 AC 639 ms
36,136 KB
testcase_20 AC 642 ms
36,280 KB
testcase_21 AC 583 ms
36,136 KB
testcase_22 AC 576 ms
36,152 KB
testcase_23 AC 591 ms
36,276 KB
testcase_24 AC 597 ms
36,096 KB
testcase_25 AC 638 ms
36,156 KB
testcase_26 AC 645 ms
36,284 KB
testcase_27 AC 648 ms
36,152 KB
testcase_28 AC 643 ms
36,152 KB
testcase_29 AC 584 ms
36,260 KB
testcase_30 AC 660 ms
36,152 KB
testcase_31 AC 646 ms
36,152 KB
testcase_32 AC 642 ms
36,104 KB
testcase_33 AC 641 ms
36,144 KB
testcase_34 AC 639 ms
40,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
lis = list(map(int,input().split()))
li = list(map(int,input().split()))
ans = 0
status = 0
for i in range(n):
    if lis[i] != li[i]:
        if status == 0:
            status = 1
            ans += 1
    else:
        status = 0
print(ans)
0