結果
問題 | No.1183 コイン遊び |
ユーザー | TakoKurage |
提出日時 | 2020-11-24 14:31:12 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 223 bytes |
コンパイル時間 | 169 ms |
コンパイル使用メモリ | 10,760 KB |
実行使用メモリ | 46,120 KB |
最終ジャッジ日時 | 2023-10-01 01:03:19 |
合計ジャッジ時間 | 18,542 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 17 ms
8,192 KB |
testcase_01 | AC | 18 ms
8,176 KB |
testcase_02 | AC | 16 ms
8,272 KB |
testcase_03 | AC | 16 ms
8,256 KB |
testcase_04 | AC | 16 ms
8,260 KB |
testcase_05 | AC | 16 ms
8,164 KB |
testcase_06 | AC | 16 ms
8,096 KB |
testcase_07 | AC | 16 ms
8,264 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | AC | 461 ms
45,856 KB |
testcase_22 | AC | 465 ms
45,820 KB |
testcase_23 | WA | - |
testcase_24 | AC | 473 ms
45,804 KB |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | AC | 462 ms
45,936 KB |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
ソースコード
from itertools import groupby N, *AB = map(int, open(0).read().split()) A, B = AB[:N], AB[N:] ans = 0 prev = None for a, b in zip(A, B): if a != b and (a, b) != prev: ans += 1 prev = (a, b) print(ans)