結果
問題 | No.1101 鼻水 |
ユーザー |
![]() |
提出日時 | 2020-07-03 23:19:57 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 36 ms / 2,000 ms |
コード長 | 338 bytes |
コンパイル時間 | 204 ms |
コンパイル使用メモリ | 82,284 KB |
実行使用メモリ | 53,764 KB |
最終ジャッジ日時 | 2024-09-17 04:56:02 |
合計ジャッジ時間 | 1,909 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
import sys input=sys.stdin.readline def I(): return int(input()) def MI(): return map(int, input().split()) def LI(): return list(map(int, input().split())) def main(): mod=10**9+7 V,T,P=MI() V=V*(P+1) ans=1+V%(T-1) + (V//(T-1))*T if V%(T-1)==0: ans-=1 print(ans) main()