結果
| 問題 | No.915 Plus Or Multiple Operation |
| コンテスト | |
| ユーザー |
sasa8uyauya
|
| 提出日時 | 2025-03-06 08:05:58 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 169 bytes |
| 記録 | |
| コンパイル時間 | 227 ms |
| コンパイル使用メモリ | 95,728 KB |
| 実行使用メモリ | 79,232 KB |
| 最終ジャッジ日時 | 2026-07-06 21:32:56 |
| 合計ジャッジ時間 | 1,982 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 1 WA * 9 |
ソースコード
T=int(input())
for _ in range(T):
a,b,c=map(int,input().split())
if c==1:
print(a*b)
continue
d=0
while a>0:
d+=1+(a%c!=0)
a//=c
print((d-1)*b)
sasa8uyauya