結果

問題 No.1183 コイン遊び
ユーザー 👑 rin204rin204
提出日時 2020-08-24 17:12:54
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 621 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 140 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 39,980 KB
最終ジャッジ日時 2024-04-24 03:35:44
合計ジャッジ時間 16,171 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,752 KB
testcase_01 AC 29 ms
10,624 KB
testcase_02 AC 30 ms
10,624 KB
testcase_03 AC 28 ms
10,624 KB
testcase_04 AC 25 ms
10,624 KB
testcase_05 AC 28 ms
10,496 KB
testcase_06 AC 27 ms
10,624 KB
testcase_07 AC 26 ms
10,752 KB
testcase_08 AC 27 ms
10,752 KB
testcase_09 AC 26 ms
10,624 KB
testcase_10 AC 37 ms
11,264 KB
testcase_11 AC 61 ms
12,356 KB
testcase_12 AC 383 ms
28,996 KB
testcase_13 AC 338 ms
26,812 KB
testcase_14 AC 544 ms
34,488 KB
testcase_15 AC 621 ms
39,852 KB
testcase_16 AC 579 ms
36,148 KB
testcase_17 AC 599 ms
36,028 KB
testcase_18 AC 568 ms
36,024 KB
testcase_19 AC 583 ms
36,024 KB
testcase_20 AC 596 ms
36,148 KB
testcase_21 AC 553 ms
36,156 KB
testcase_22 AC 558 ms
36,024 KB
testcase_23 AC 550 ms
36,024 KB
testcase_24 AC 540 ms
36,148 KB
testcase_25 AC 565 ms
36,148 KB
testcase_26 AC 583 ms
36,020 KB
testcase_27 AC 608 ms
36,148 KB
testcase_28 AC 576 ms
36,024 KB
testcase_29 AC 529 ms
36,152 KB
testcase_30 AC 576 ms
36,148 KB
testcase_31 AC 599 ms
36,152 KB
testcase_32 AC 586 ms
36,024 KB
testcase_33 AC 601 ms
36,020 KB
testcase_34 AC 607 ms
39,980 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
alst = list(map(int, input().split()))
blst = list(map(int, input().split()))
ans = 0
flg = False
for a, b in zip(alst, blst):
    if (a != b) and (not flg):
        ans += 1
        flg = True
    elif a == b:
        flg = False
print(ans)
0