結果
問題 | No.915 Plus Or Multiple Operation |
ユーザー |
![]() |
提出日時 | 2025-01-02 16:08:42 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 268 bytes |
コンパイル時間 | 291 ms |
コンパイル使用メモリ | 82,736 KB |
実行使用メモリ | 73,432 KB |
最終ジャッジ日時 | 2025-01-02 16:08:52 |
合計ジャッジ時間 | 10,476 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 1 WA * 7 TLE * 2 |
ソースコード
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)