結果

問題 No.1183 コイン遊び
ユーザー fukafukatanifukafukatani
提出日時 2020-08-31 22:39:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 320 ms / 2,000 ms
コード長 189 bytes
コンパイル時間 279 ms
コンパイル使用メモリ 82,304 KB
実行使用メモリ 195,736 KB
最終ジャッジ日時 2024-04-28 11:24:42
合計ジャッジ時間 9,367 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,968 KB
testcase_01 AC 38 ms
51,456 KB
testcase_02 AC 39 ms
51,712 KB
testcase_03 AC 40 ms
51,712 KB
testcase_04 AC 40 ms
51,968 KB
testcase_05 AC 40 ms
51,712 KB
testcase_06 AC 39 ms
51,840 KB
testcase_07 AC 39 ms
51,712 KB
testcase_08 AC 40 ms
51,968 KB
testcase_09 AC 40 ms
52,352 KB
testcase_10 AC 55 ms
65,920 KB
testcase_11 AC 70 ms
77,952 KB
testcase_12 AC 213 ms
153,136 KB
testcase_13 AC 198 ms
155,168 KB
testcase_14 AC 295 ms
190,108 KB
testcase_15 AC 307 ms
195,328 KB
testcase_16 AC 306 ms
195,096 KB
testcase_17 AC 305 ms
195,100 KB
testcase_18 AC 309 ms
195,104 KB
testcase_19 AC 305 ms
194,976 KB
testcase_20 AC 312 ms
195,228 KB
testcase_21 AC 263 ms
183,964 KB
testcase_22 AC 268 ms
183,840 KB
testcase_23 AC 285 ms
195,356 KB
testcase_24 AC 284 ms
195,224 KB
testcase_25 AC 307 ms
195,484 KB
testcase_26 AC 306 ms
195,228 KB
testcase_27 AC 320 ms
195,104 KB
testcase_28 AC 309 ms
195,100 KB
testcase_29 AC 265 ms
184,472 KB
testcase_30 AC 296 ms
195,096 KB
testcase_31 AC 302 ms
194,968 KB
testcase_32 AC 302 ms
195,228 KB
testcase_33 AC 313 ms
195,736 KB
testcase_34 AC 306 ms
195,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
A = input().split()
B = input().split()

ans = 0
changing = False
for a, b in zip(A, B):
    if not changing and a != b:
        ans += 1
    changing = a != b

print(ans)
0