結果

問題 No.586 ダブルブッキング
ユーザー setcanonsetcanon
提出日時 2017-12-04 21:18:34
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 185 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 7,964 KB
最終ジャッジ日時 2023-08-18 20:57:08
合計ジャッジ時間 1,130 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,836 KB
testcase_01 AC 16 ms
7,924 KB
testcase_02 AC 14 ms
7,808 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 14 ms
7,784 KB
testcase_06 AC 14 ms
7,768 KB
testcase_07 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

P = int(input())
Q = int(input())
N = int(input())
R = [list(map(int,input().split())) for _ in range(N)]
s = 0
for i in range(N-1):
    if R[i] == R[i+1]:
        s += 1
print((P+Q)*s)
0