結果

問題 No.1101 鼻水
ユーザー 学ぶマン
提出日時 2025-03-11 17:49:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 229 bytes
コンパイル時間 189 ms
コンパイル使用メモリ 82,772 KB
実行使用メモリ 53,624 KB
最終ジャッジ日時 2025-03-11 17:49:08
合計ジャッジ時間 2,278 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

V, T, P = map(int, input().split())
V *= P + 1
# 一回すする
ans = 1

# 容量V を T-1 で割る
sho, amari = divmod(V, T - 1)

if amari == 0:
    ans += T*sho
    ans -= 1
else:
    ans += T*sho
    ans += amari
print(ans)
0