結果
| 問題 | No.604 誕生日のお小遣い |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-01 16:14:11 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 34 ms / 1,000 ms |
| + 799µs | |
| コード長 | 213 bytes |
| 記録 | |
| コンパイル時間 | 82 ms |
| コンパイル使用メモリ | 65,264 KB |
| 実行使用メモリ | 54,520 KB |
| 最終ジャッジ日時 | 2026-10-13 12:58:31 |
| 合計ジャッジ時間 | 2,681 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
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)