結果

問題 No.1183 コイン遊び
ユーザー titiatitia
提出日時 2020-08-22 13:26:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 748 ms / 2,000 ms
コード長 238 bytes
コンパイル時間 239 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 39,200 KB
最終ジャッジ日時 2024-04-23 07:54:00
合計ジャッジ時間 18,960 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
10,752 KB
testcase_01 AC 31 ms
10,752 KB
testcase_02 AC 34 ms
10,752 KB
testcase_03 AC 33 ms
10,752 KB
testcase_04 AC 32 ms
10,752 KB
testcase_05 AC 32 ms
10,752 KB
testcase_06 AC 30 ms
10,752 KB
testcase_07 AC 32 ms
10,752 KB
testcase_08 AC 32 ms
10,752 KB
testcase_09 AC 33 ms
10,752 KB
testcase_10 AC 44 ms
11,136 KB
testcase_11 AC 75 ms
12,232 KB
testcase_12 AC 467 ms
27,844 KB
testcase_13 AC 418 ms
25,944 KB
testcase_14 AC 681 ms
37,524 KB
testcase_15 AC 740 ms
38,064 KB
testcase_16 AC 723 ms
38,084 KB
testcase_17 AC 731 ms
38,424 KB
testcase_18 AC 737 ms
38,016 KB
testcase_19 AC 734 ms
38,092 KB
testcase_20 AC 731 ms
38,376 KB
testcase_21 AC 731 ms
38,980 KB
testcase_22 AC 718 ms
38,060 KB
testcase_23 AC 663 ms
38,368 KB
testcase_24 AC 748 ms
38,484 KB
testcase_25 AC 745 ms
38,312 KB
testcase_26 AC 733 ms
39,200 KB
testcase_27 AC 740 ms
37,964 KB
testcase_28 AC 729 ms
37,960 KB
testcase_29 AC 743 ms
37,964 KB
testcase_30 AC 744 ms
37,892 KB
testcase_31 AC 721 ms
38,072 KB
testcase_32 AC 729 ms
38,832 KB
testcase_33 AC 721 ms
38,084 KB
testcase_34 AC 721 ms
38,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

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

ANS=0
if A[0]!=B[0]:
    ANS+=1
for i in range(1,N):
    if A[i-1]==B[i-1] and A[i]!=B[i]:
        ANS+=1
print(ANS)
0