結果
問題 | No.604 誕生日のお小遣い |
ユーザー |
![]() |
提出日時 | 2018-02-24 23:44:30 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 229 bytes |
コンパイル時間 | 215 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 17,444 KB |
最終ジャッジ日時 | 2024-11-06 14:43:30 |
合計ジャッジ時間 | 2,832 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 TLE * 1 |
other | AC * 1 -- * 20 |
ソースコード
ln=list(map(int,input().split())) A=ln[0] B=ln[1] C=ln[2] D=A+B-1 x=C//D total=0 age=0 total+=x*D age+=x*A while total<C: age+=1 if age%A==0: total+=B else: total+=1 print(age)