結果

問題 No.1101 鼻水
コンテスト
ユーザー arito_asu
提出日時 2020-07-03 22:39:19
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 431 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 531 ms
コンパイル使用メモリ 20,700 KB
実行使用メモリ 21,756 KB
最終ジャッジ日時 2026-04-06 02:41:45
合計ジャッジ時間 4,319 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1 TLE * 1
other -- * 22
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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)
0