結果

問題 No.1183 コイン遊び
ユーザー tamatotamato
提出日時 2020-08-29 20:54:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 336 ms / 2,000 ms
コード長 487 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 82,956 KB
実行使用メモリ 275,856 KB
最終ジャッジ日時 2024-04-27 01:19:52
合計ジャッジ時間 10,789 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,748 KB
testcase_01 AC 35 ms
52,704 KB
testcase_02 AC 34 ms
53,004 KB
testcase_03 AC 34 ms
53,112 KB
testcase_04 AC 34 ms
52,472 KB
testcase_05 AC 34 ms
53,904 KB
testcase_06 AC 34 ms
52,992 KB
testcase_07 AC 34 ms
52,072 KB
testcase_08 AC 38 ms
59,244 KB
testcase_09 AC 38 ms
59,100 KB
testcase_10 AC 46 ms
68,440 KB
testcase_11 AC 60 ms
85,020 KB
testcase_12 AC 250 ms
208,396 KB
testcase_13 AC 214 ms
189,364 KB
testcase_14 AC 325 ms
253,568 KB
testcase_15 AC 332 ms
275,380 KB
testcase_16 AC 327 ms
275,832 KB
testcase_17 AC 327 ms
275,248 KB
testcase_18 AC 326 ms
275,296 KB
testcase_19 AC 331 ms
275,288 KB
testcase_20 AC 330 ms
275,152 KB
testcase_21 AC 305 ms
275,416 KB
testcase_22 AC 304 ms
275,508 KB
testcase_23 AC 306 ms
275,476 KB
testcase_24 AC 305 ms
275,188 KB
testcase_25 AC 336 ms
275,592 KB
testcase_26 AC 331 ms
275,856 KB
testcase_27 AC 326 ms
275,312 KB
testcase_28 AC 325 ms
275,352 KB
testcase_29 AC 302 ms
275,460 KB
testcase_30 AC 313 ms
275,160 KB
testcase_31 AC 327 ms
275,324 KB
testcase_32 AC 317 ms
275,812 KB
testcase_33 AC 324 ms
275,520 KB
testcase_34 AC 325 ms
275,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

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

    ans = 0
    flg = 0
    for a, b in zip(A, B):
        if flg == 0:
            if a != b:
                flg = 1
        else:
            if a == b:
                flg = 0
                ans += 1
    if flg == 1:
        ans += 1
    print(ans)


if __name__ == '__main__':
    main()
0