結果

問題 No.1101 鼻水
ユーザー arito_asuarito_asu
提出日時 2020-07-03 22:40:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 369 bytes
コンパイル時間 110 ms
コンパイル使用メモリ 11,912 KB
実行使用メモリ 10,112 KB
最終ジャッジ日時 2023-10-17 05:40:12
合計ジャッジ時間 2,260 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,112 KB
testcase_01 AC 29 ms
10,112 KB
testcase_02 RE -
testcase_03 AC 31 ms
10,112 KB
testcase_04 WA -
testcase_05 AC 38 ms
10,112 KB
testcase_06 AC 187 ms
10,112 KB
testcase_07 AC 125 ms
10,112 KB
testcase_08 AC 144 ms
10,112 KB
testcase_09 AC 52 ms
10,112 KB
testcase_10 AC 45 ms
10,112 KB
testcase_11 AC 49 ms
10,112 KB
testcase_12 AC 60 ms
10,112 KB
testcase_13 AC 41 ms
10,112 KB
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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