結果

問題 No.1183 コイン遊び
ユーザー mkawa2mkawa2
提出日時 2020-08-22 13:12:56
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 701 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 254 ms
コンパイル使用メモリ 10,692 KB
実行使用メモリ 35,664 KB
最終ジャッジ日時 2023-08-05 10:01:14
合計ジャッジ時間 16,417 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,800 KB
testcase_01 AC 16 ms
7,876 KB
testcase_02 AC 16 ms
7,816 KB
testcase_03 AC 16 ms
7,872 KB
testcase_04 AC 16 ms
7,876 KB
testcase_05 AC 16 ms
7,764 KB
testcase_06 AC 16 ms
7,816 KB
testcase_07 AC 16 ms
7,916 KB
testcase_08 AC 16 ms
7,768 KB
testcase_09 AC 16 ms
7,820 KB
testcase_10 AC 27 ms
8,540 KB
testcase_11 AC 53 ms
9,432 KB
testcase_12 AC 399 ms
25,012 KB
testcase_13 AC 360 ms
23,348 KB
testcase_14 AC 584 ms
34,340 KB
testcase_15 AC 654 ms
35,528 KB
testcase_16 AC 635 ms
35,408 KB
testcase_17 AC 652 ms
35,664 KB
testcase_18 AC 631 ms
35,528 KB
testcase_19 AC 641 ms
35,508 KB
testcase_20 AC 632 ms
35,432 KB
testcase_21 AC 502 ms
35,548 KB
testcase_22 AC 517 ms
35,552 KB
testcase_23 AC 701 ms
35,508 KB
testcase_24 AC 510 ms
35,408 KB
testcase_25 AC 645 ms
35,580 KB
testcase_26 AC 652 ms
35,544 KB
testcase_27 AC 628 ms
35,396 KB
testcase_28 AC 629 ms
35,360 KB
testcase_29 AC 523 ms
35,660 KB
testcase_30 AC 630 ms
35,504 KB
testcase_31 AC 648 ms
35,416 KB
testcase_32 AC 628 ms
35,448 KB
testcase_33 AC 623 ms
35,444 KB
testcase_34 AC 628 ms
35,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

def II(): return int(sys.stdin.readline())
def LI(): return list(map(int, sys.stdin.readline().split()))

n=II()
aa=LI()+[0]
bb=LI()+[0]
ans=0
for i in range(n):
    if aa[i]!=bb[i] and aa[i+1]==bb[i+1]:ans+=1
print(ans)
0