結果
問題 |
No.1101 鼻水
|
ユーザー |
|
提出日時 | 2020-07-03 22:40:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 369 bytes |
コンパイル時間 | 70 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-09-17 04:20:13 |
合計ジャッジ時間 | 1,868 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)