結果
| 問題 | No.604 誕生日のお小遣い |
| コンテスト | |
| ユーザー |
1up_aloe
|
| 提出日時 | 2017-12-08 11:24:15 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 25 ms / 1,000 ms |
| + 653µs | |
| コード長 | 212 bytes |
| 記録 | |
| コンパイル時間 | 67 ms |
| コンパイル使用メモリ | 14,848 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2026-10-13 10:35:39 |
| 合計ジャッジ時間 | 2,377 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
time,price,target = list(map(int,input().split()))
cycle = (time-1)+price
cut = target//cycle
Ttage = target % cycle
if time-1 < Ttage < cycle:
day = (cut+1)*time
else:
day = cut*time + Ttage
print (day)
1up_aloe