結果
| 問題 |
No.586 ダブルブッキング
|
| コンテスト | |
| ユーザー |
setcanon
|
| 提出日時 | 2017-12-04 21:18:34 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 185 bytes |
| コンパイル時間 | 265 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-11-28 04:31:10 |
| 合計ジャッジ時間 | 1,021 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 2 WA * 3 |
ソースコード
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)
setcanon