結果

問題 No.604 誕生日のお小遣い
ユーザー tcltktcltk
提出日時 2021-01-20 05:01:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 258 ms / 1,000 ms
コード長 547 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 87,192 KB
実行使用メモリ 92,180 KB
最終ジャッジ日時 2023-08-23 08:49:00
合計ジャッジ時間 8,041 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 248 ms
91,960 KB
testcase_01 AC 248 ms
91,856 KB
testcase_02 AC 245 ms
92,180 KB
testcase_03 AC 246 ms
92,072 KB
testcase_04 AC 247 ms
92,072 KB
testcase_05 AC 257 ms
91,960 KB
testcase_06 AC 245 ms
92,064 KB
testcase_07 AC 250 ms
91,964 KB
testcase_08 AC 258 ms
92,016 KB
testcase_09 AC 253 ms
92,012 KB
testcase_10 AC 240 ms
92,052 KB
testcase_11 AC 245 ms
92,024 KB
testcase_12 AC 247 ms
92,080 KB
testcase_13 AC 250 ms
91,944 KB
testcase_14 AC 248 ms
92,032 KB
testcase_15 AC 253 ms
92,012 KB
testcase_16 AC 250 ms
92,148 KB
testcase_17 AC 245 ms
91,704 KB
testcase_18 AC 249 ms
91,708 KB
testcase_19 AC 248 ms
92,080 KB
testcase_20 AC 248 ms
92,140 KB
testcase_21 AC 248 ms
91,852 KB
testcase_22 AC 245 ms
91,968 KB
testcase_23 AC 251 ms
91,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#region Header
#!/usr/bin/env python3
# from typing import *

import sys
import io
import math
import collections
import decimal
import itertools
from queue import PriorityQueue
import bisect
import heapq

def input():
    return sys.stdin.readline()[:-1]

sys.setrecursionlimit(1000000)
#endregion

# _INPUT = """2 2 8
# """
# sys.stdin = io.StringIO(_INPUT)


def main():
    A, B, C = map(int, input().split())
    x = (C // (A-1+B)) * A + min(C % (A-1+B), A)
    print(x)

if __name__ == '__main__':
    main()
0