結果

問題 No.604 誕生日のお小遣い
ユーザー rlangevinrlangevin
提出日時 2023-01-04 21:45:48
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 65 ms / 1,000 ms
コード長 107 bytes
コンパイル時間 336 ms
コンパイル使用メモリ 87,300 KB
実行使用メモリ 71,600 KB
最終ジャッジ日時 2023-08-18 18:38:55
合計ジャッジ時間 3,503 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
71,364 KB
testcase_01 AC 60 ms
71,256 KB
testcase_02 AC 61 ms
71,436 KB
testcase_03 AC 62 ms
71,480 KB
testcase_04 AC 64 ms
71,380 KB
testcase_05 AC 61 ms
71,600 KB
testcase_06 AC 65 ms
71,256 KB
testcase_07 AC 63 ms
71,180 KB
testcase_08 AC 64 ms
71,388 KB
testcase_09 AC 65 ms
71,368 KB
testcase_10 AC 64 ms
71,248 KB
testcase_11 AC 65 ms
71,364 KB
testcase_12 AC 62 ms
71,180 KB
testcase_13 AC 63 ms
71,360 KB
testcase_14 AC 64 ms
71,444 KB
testcase_15 AC 62 ms
71,360 KB
testcase_16 AC 64 ms
71,252 KB
testcase_17 AC 60 ms
71,524 KB
testcase_18 AC 62 ms
71,396 KB
testcase_19 AC 60 ms
71,488 KB
testcase_20 AC 61 ms
71,160 KB
testcase_21 AC 61 ms
71,364 KB
testcase_22 AC 61 ms
71,364 KB
testcase_23 AC 62 ms
71,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B, C = map(int, input().split())
ans = C // (A + B - 1) * A
C %= (A + B - 1)
ans += min(C, A)
print(ans)
0