結果
| 問題 |
No.604 誕生日のお小遣い
|
| コンテスト | |
| ユーザー |
kwnwsdnc
|
| 提出日時 | 2018-02-24 23:46:40 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 277 bytes |
| コンパイル時間 | 243 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 16,000 KB |
| 最終ジャッジ日時 | 2024-11-06 14:56:42 |
| 合計ジャッジ時間 | 3,178 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 TLE * 1 -- * 11 |
ソースコード
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
if A>=C:
age=C
else:
while total<C:
age+=1
if age%A==0:
total+=B
else:
total+=1
print(age)
kwnwsdnc