結果
問題 |
No.1101 鼻水
|
ユーザー |
|
提出日時 | 2020-07-03 22:39:19 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 431 bytes |
コンパイル時間 | 76 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 17,824 KB |
最終ジャッジ日時 | 2024-09-17 04:19:26 |
合計ジャッジ時間 | 3,502 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 TLE * 1 |
other | -- * 22 |
ソースコード
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: t = 10**8 if v-w > t and snr > t: for thr in [10**x for x in range(8,2,-1)]: if v-w > thr and snr > thr: w += thr; s+= thr; snr -= thr print(s)