結果
問題 |
No.604 誕生日のお小遣い
|
ユーザー |
|
提出日時 | 2023-01-01 16:14:11 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 39 ms / 1,000 ms |
コード長 | 213 bytes |
コンパイル時間 | 359 ms |
コンパイル使用メモリ | 81,520 KB |
実行使用メモリ | 52,224 KB |
最終ジャッジ日時 | 2024-11-27 00:07:50 |
合計ジャッジ時間 | 2,240 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
a,b,c=map(int,input().split()) t=b+a-1 temp=c//t if temp==0: if a-1<c: print(a) else: print(c) else: mod=c%t if mod>=a: print((temp+1)*a) else: print(temp*a+mod)