結果
| 問題 | No.604 誕生日のお小遣い |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-01 16:14:11 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 43 ms / 1,000 ms |
| + 372µs | |
| コード長 | 213 bytes |
| 記録 | |
| コンパイル時間 | 114 ms |
| コンパイル使用メモリ | 64,340 KB |
| 実行使用メモリ | 53,516 KB |
| 最終ジャッジ日時 | 2026-11-11 00:12:42 |
| 合計ジャッジ時間 | 3,201 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 24 |
ソースコード
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)