結果

問題 No.604 誕生日のお小遣い
ユーザー yk356
提出日時 2019-11-11 02:17:16
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 258 bytes
コンパイル時間 1,636 ms
コンパイル使用メモリ 165,004 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-15 05:07:06
合計ジャッジ時間 2,683 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main()
{
    int64_t A, B, C;
    cin >> A >> B >> C;
    int64_t step = B + (A-1);
    int64_t tmp = C / step;
    int64_t tmp2 = A*tmp;
    tmp2 += C - (tmp*step);
    cout << tmp2 << endl;
    return 0;
}
0