結果
| 問題 | No.1101 鼻水 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-07-03 22:36:33 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 369 bytes |
| 記録 | |
| コンパイル時間 | 163 ms |
| コンパイル使用メモリ | 82,644 KB |
| 実行使用メモリ | 76,044 KB |
| 最終ジャッジ日時 | 2024-09-17 04:18:28 |
| 合計ジャッジ時間 | 2,222 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 RE * 1 |
| other | AC * 10 WA * 1 RE * 11 |
ソースコード
v,t,p = map(int,input().split())
s,w,snr = 0,0,0
while w < v:
w += 1; s += 1
snr = snr-1 if snr>0 else snr
if w==v and p>0:
p -= 1
w = 0
elif snr==0:
snr = t
w -= 1
else:
for thr in [10**x for x in range(8,2,-1)]:
if v-w > thr and snr > thr:
w += thr; s+= thr; snr -= th
print(s)