結果

問題 No.1183 コイン遊び
ユーザー TakoKurageTakoKurage
提出日時 2020-11-24 14:34:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 856 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 238 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 111,788 KB
最終ジャッジ日時 2023-10-01 01:03:48
合計ジャッジ時間 21,267 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,932 KB
testcase_01 AC 16 ms
7,828 KB
testcase_02 AC 16 ms
7,888 KB
testcase_03 AC 15 ms
7,760 KB
testcase_04 AC 16 ms
7,808 KB
testcase_05 AC 15 ms
7,872 KB
testcase_06 AC 15 ms
7,808 KB
testcase_07 AC 15 ms
7,832 KB
testcase_08 AC 17 ms
7,768 KB
testcase_09 AC 17 ms
7,864 KB
testcase_10 AC 32 ms
9,888 KB
testcase_11 AC 63 ms
14,032 KB
testcase_12 AC 550 ms
72,452 KB
testcase_13 AC 485 ms
64,536 KB
testcase_14 AC 804 ms
103,224 KB
testcase_15 AC 839 ms
109,672 KB
testcase_16 AC 849 ms
111,788 KB
testcase_17 AC 849 ms
109,748 KB
testcase_18 AC 856 ms
111,704 KB
testcase_19 AC 831 ms
109,752 KB
testcase_20 AC 832 ms
109,896 KB
testcase_21 AC 789 ms
109,816 KB
testcase_22 AC 804 ms
109,748 KB
testcase_23 AC 761 ms
111,728 KB
testcase_24 AC 808 ms
109,812 KB
testcase_25 AC 846 ms
109,744 KB
testcase_26 AC 831 ms
111,772 KB
testcase_27 AC 839 ms
109,832 KB
testcase_28 AC 841 ms
109,652 KB
testcase_29 AC 795 ms
109,800 KB
testcase_30 AC 835 ms
109,816 KB
testcase_31 AC 850 ms
109,796 KB
testcase_32 AC 853 ms
109,700 KB
testcase_33 AC 848 ms
109,900 KB
testcase_34 AC 845 ms
109,804 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, *AB = map(int, open(0).read().split())
AB = list(zip(AB[:N], AB[N:]))

a, b = AB[0]
ans = a ^ b
for (a1, b1), (a2, b2) in zip(AB, AB[1:]):
    if a1 == b1 and a2 != b2:
        ans += 1

print(ans)
0