結果

問題 No.604 誕生日のお小遣い
ユーザー nouka28
提出日時 2023-01-01 16:08:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 158 bytes
コンパイル時間 431 ms
コンパイル使用メモリ 81,972 KB
実行使用メモリ 54,116 KB
最終ジャッジ日時 2024-11-27 00:07:30
合計ジャッジ時間 1,996 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

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
    print(temp*a+mod)
0