結果

問題 No.1183 コイン遊び
ユーザー 👑 KazunKazun
提出日時 2020-08-22 13:52:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 365 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 325 ms
コンパイル使用メモリ 82,544 KB
実行使用メモリ 276,240 KB
最終ジャッジ日時 2024-04-23 08:16:33
合計ジャッジ時間 10,582 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,484 KB
testcase_01 AC 38 ms
52,300 KB
testcase_02 AC 39 ms
52,224 KB
testcase_03 AC 38 ms
52,204 KB
testcase_04 AC 38 ms
52,432 KB
testcase_05 AC 38 ms
53,164 KB
testcase_06 AC 40 ms
52,812 KB
testcase_07 AC 37 ms
52,932 KB
testcase_08 AC 41 ms
59,016 KB
testcase_09 AC 41 ms
59,080 KB
testcase_10 AC 51 ms
69,268 KB
testcase_11 AC 68 ms
85,560 KB
testcase_12 AC 251 ms
207,652 KB
testcase_13 AC 228 ms
190,496 KB
testcase_14 AC 347 ms
263,208 KB
testcase_15 AC 355 ms
276,096 KB
testcase_16 AC 358 ms
276,124 KB
testcase_17 AC 365 ms
275,896 KB
testcase_18 AC 360 ms
275,860 KB
testcase_19 AC 357 ms
275,696 KB
testcase_20 AC 354 ms
275,988 KB
testcase_21 AC 338 ms
275,552 KB
testcase_22 AC 336 ms
275,788 KB
testcase_23 AC 337 ms
275,764 KB
testcase_24 AC 339 ms
275,708 KB
testcase_25 AC 359 ms
275,924 KB
testcase_26 AC 359 ms
275,736 KB
testcase_27 AC 362 ms
275,820 KB
testcase_28 AC 354 ms
275,812 KB
testcase_29 AC 335 ms
275,452 KB
testcase_30 AC 344 ms
275,796 KB
testcase_31 AC 360 ms
276,240 KB
testcase_32 AC 357 ms
275,856 KB
testcase_33 AC 363 ms
275,588 KB
testcase_34 AC 359 ms
275,632 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

C=[0]*N
for i in range(N):
    if A[i]!=B[i]:
        C[i]=1
C=[0]+C

K=0
for i in range(N):
    if C[i+1]==1 and C[i]==0:
        K+=1
print(K)
0