結果
| 問題 | No.915 Plus Or Multiple Operation |
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2025-01-02 16:08:42 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 268 bytes |
| 記録 | |
| コンパイル時間 | 275 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 71,040 KB |
| 最終ジャッジ日時 | 2026-06-06 04:29:25 |
| 合計ジャッジ時間 | 6,985 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 3 |
| other | TLE * 1 -- * 9 |
ソースコード
for _ in range(int(input())):
a,b,c = map(int,input().split())
i = 0
while a > 0:
if a < 2 * c - 1:
a = 0
i += 1
if a % c == 0:
a //= c
else:
a -= a % c
i += 1
print(b * i)
ntuda