結果

問題 No.1183 コイン遊び
ユーザー zyxwzyxw
提出日時 2021-02-02 21:28:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 437 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 87,072 KB
実行使用メモリ 273,104 KB
最終ジャッジ日時 2023-09-12 11:25:06
合計ジャッジ時間 14,096 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,460 KB
testcase_01 AC 72 ms
71,004 KB
testcase_02 AC 73 ms
71,196 KB
testcase_03 AC 73 ms
71,192 KB
testcase_04 AC 72 ms
71,364 KB
testcase_05 AC 73 ms
71,364 KB
testcase_06 AC 73 ms
71,256 KB
testcase_07 AC 73 ms
71,456 KB
testcase_08 AC 122 ms
76,016 KB
testcase_09 AC 75 ms
75,644 KB
testcase_10 AC 83 ms
77,560 KB
testcase_11 AC 96 ms
89,916 KB
testcase_12 AC 282 ms
199,640 KB
testcase_13 AC 289 ms
189,500 KB
testcase_14 AC 361 ms
249,468 KB
testcase_15 AC 437 ms
272,304 KB
testcase_16 AC 379 ms
272,708 KB
testcase_17 AC 373 ms
272,752 KB
testcase_18 AC 374 ms
272,648 KB
testcase_19 AC 377 ms
272,496 KB
testcase_20 AC 378 ms
272,400 KB
testcase_21 AC 359 ms
272,596 KB
testcase_22 AC 362 ms
272,432 KB
testcase_23 AC 366 ms
272,468 KB
testcase_24 AC 366 ms
272,236 KB
testcase_25 AC 380 ms
272,816 KB
testcase_26 AC 372 ms
272,468 KB
testcase_27 AC 372 ms
272,460 KB
testcase_28 AC 378 ms
272,520 KB
testcase_29 AC 368 ms
272,524 KB
testcase_30 AC 372 ms
273,104 KB
testcase_31 AC 380 ms
272,512 KB
testcase_32 AC 379 ms
272,988 KB
testcase_33 AC 375 ms
272,532 KB
testcase_34 AC 375 ms
272,680 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
B=list(map(int,input().split()))
ans=0
m=0
for i in range(N):
    if A[i]!=B[i]:
        m+=1
    else:
        if m>=1:
            ans+=1
            m=0
if m>=1:
    ans+=1
print(ans)
0