結果
| 問題 | No.604 誕生日のお小遣い |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-01 16:14:11 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 35 ms / 1,000 ms |
| + 350µs | |
| コード長 | 213 bytes |
| 記録 | |
| コンパイル時間 | 1,151 ms |
| コンパイル使用メモリ | 63,872 KB |
| 実行使用メモリ | 53,504 KB |
| 最終ジャッジ日時 | 2026-11-08 10:15:22 |
| 合計ジャッジ時間 | 3,427 ms |
|
ジャッジサーバーID (参考情報) |
judge7_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 23 |
ソースコード
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)