結果

問題 No.1183 コイン遊び
ユーザー titiatitia
提出日時 2020-08-22 13:26:44
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 680 ms / 2,000 ms
コード長 238 bytes
コンパイル時間 191 ms
コンパイル使用メモリ 10,752 KB
実行使用メモリ 36,400 KB
最終ジャッジ日時 2023-08-05 10:30:24
合計ジャッジ時間 16,675 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,812 KB
testcase_01 AC 15 ms
7,820 KB
testcase_02 AC 15 ms
7,824 KB
testcase_03 AC 15 ms
7,768 KB
testcase_04 AC 15 ms
7,744 KB
testcase_05 AC 15 ms
7,808 KB
testcase_06 AC 15 ms
7,840 KB
testcase_07 AC 14 ms
7,780 KB
testcase_08 AC 16 ms
7,840 KB
testcase_09 AC 16 ms
7,744 KB
testcase_10 AC 27 ms
8,496 KB
testcase_11 AC 53 ms
9,600 KB
testcase_12 AC 398 ms
25,076 KB
testcase_13 AC 356 ms
23,276 KB
testcase_14 AC 578 ms
33,968 KB
testcase_15 AC 625 ms
35,456 KB
testcase_16 AC 616 ms
35,460 KB
testcase_17 AC 628 ms
35,376 KB
testcase_18 AC 627 ms
35,768 KB
testcase_19 AC 619 ms
35,392 KB
testcase_20 AC 621 ms
35,980 KB
testcase_21 AC 649 ms
35,404 KB
testcase_22 AC 677 ms
36,396 KB
testcase_23 AC 532 ms
35,448 KB
testcase_24 AC 680 ms
35,476 KB
testcase_25 AC 626 ms
35,408 KB
testcase_26 AC 634 ms
35,412 KB
testcase_27 AC 632 ms
35,452 KB
testcase_28 AC 632 ms
35,380 KB
testcase_29 AC 663 ms
35,380 KB
testcase_30 AC 646 ms
35,816 KB
testcase_31 AC 626 ms
35,432 KB
testcase_32 AC 644 ms
36,400 KB
testcase_33 AC 624 ms
36,232 KB
testcase_34 AC 632 ms
36,044 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

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

ANS=0
if A[0]!=B[0]:
    ANS+=1
for i in range(1,N):
    if A[i-1]==B[i-1] and A[i]!=B[i]:
        ANS+=1
print(ANS)
0