結果

問題 No.1183 コイン遊び
ユーザー ssmkzkssmkzk
提出日時 2020-10-08 18:35:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 651 ms / 2,000 ms
コード長 278 bytes
コンパイル時間 867 ms
コンパイル使用メモリ 10,496 KB
実行使用メモリ 34,432 KB
最終ジャッジ日時 2023-09-27 11:56:46
合計ジャッジ時間 19,262 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,736 KB
testcase_01 AC 16 ms
7,732 KB
testcase_02 AC 16 ms
7,748 KB
testcase_03 AC 16 ms
7,668 KB
testcase_04 AC 15 ms
7,848 KB
testcase_05 AC 16 ms
7,664 KB
testcase_06 AC 15 ms
7,728 KB
testcase_07 AC 16 ms
7,668 KB
testcase_08 AC 16 ms
7,828 KB
testcase_09 AC 17 ms
7,744 KB
testcase_10 AC 29 ms
8,776 KB
testcase_11 AC 55 ms
9,604 KB
testcase_12 AC 390 ms
23,908 KB
testcase_13 AC 345 ms
22,280 KB
testcase_14 AC 569 ms
31,704 KB
testcase_15 AC 612 ms
33,204 KB
testcase_16 AC 648 ms
34,008 KB
testcase_17 AC 613 ms
33,388 KB
testcase_18 AC 614 ms
33,356 KB
testcase_19 AC 617 ms
33,384 KB
testcase_20 AC 622 ms
33,816 KB
testcase_21 AC 623 ms
33,276 KB
testcase_22 AC 572 ms
33,392 KB
testcase_23 AC 584 ms
33,184 KB
testcase_24 AC 580 ms
33,340 KB
testcase_25 AC 609 ms
34,384 KB
testcase_26 AC 632 ms
33,540 KB
testcase_27 AC 649 ms
34,432 KB
testcase_28 AC 613 ms
33,124 KB
testcase_29 AC 634 ms
33,360 KB
testcase_30 AC 608 ms
33,220 KB
testcase_31 AC 615 ms
34,404 KB
testcase_32 AC 651 ms
34,212 KB
testcase_33 AC 610 ms
33,376 KB
testcase_34 AC 617 ms
33,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
lA = list(map(int, input().split()))
lB = list(map(int, input().split()))
ans = 0
f = 0
for i in range(N):
    if lA[i] == lB[i] and f == 1:
        ans +=1
        f = 0
    elif lA[i] != lB[i]:
        f = 1

if f == 1:
    print(ans + 1)
else:
    print(ans)
0