結果

問題 No.1183 コイン遊び
ユーザー godcitygodcity
提出日時 2020-10-25 08:18:06
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 570 ms / 2,000 ms
コード長 312 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 35,988 KB
最終ジャッジ日時 2023-09-28 22:20:23
合計ジャッジ時間 14,700 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,940 KB
testcase_01 AC 16 ms
7,808 KB
testcase_02 AC 16 ms
7,864 KB
testcase_03 AC 15 ms
7,788 KB
testcase_04 AC 16 ms
7,872 KB
testcase_05 AC 16 ms
7,852 KB
testcase_06 AC 16 ms
7,984 KB
testcase_07 AC 16 ms
7,792 KB
testcase_08 AC 16 ms
7,872 KB
testcase_09 AC 17 ms
7,820 KB
testcase_10 AC 27 ms
8,584 KB
testcase_11 AC 49 ms
9,620 KB
testcase_12 AC 349 ms
25,244 KB
testcase_13 AC 312 ms
23,048 KB
testcase_14 AC 530 ms
33,736 KB
testcase_15 AC 551 ms
35,600 KB
testcase_16 AC 547 ms
35,388 KB
testcase_17 AC 548 ms
35,572 KB
testcase_18 AC 538 ms
35,440 KB
testcase_19 AC 552 ms
35,432 KB
testcase_20 AC 557 ms
35,496 KB
testcase_21 AC 492 ms
35,452 KB
testcase_22 AC 488 ms
35,428 KB
testcase_23 AC 503 ms
35,796 KB
testcase_24 AC 518 ms
35,500 KB
testcase_25 AC 545 ms
35,436 KB
testcase_26 AC 555 ms
35,496 KB
testcase_27 AC 570 ms
35,520 KB
testcase_28 AC 540 ms
35,368 KB
testcase_29 AC 492 ms
35,988 KB
testcase_30 AC 552 ms
35,720 KB
testcase_31 AC 546 ms
35,552 KB
testcase_32 AC 550 ms
35,356 KB
testcase_33 AC 546 ms
35,428 KB
testcase_34 AC 538 ms
35,544 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
n = int(input())
a = list(map(int, input().split()))
b = list(map(int, input().split()))

c = []
same = True
ans = 0
for i in range(n):
    if (a[i] == b[i]):
        same = True
    else:
        if (same == True):
            same = False
            ans += 1

print(ans)
0