結果

問題 No.604 誕生日のお小遣い
ユーザー kyo1
提出日時 2021-01-11 22:01:23
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 252 bytes
コンパイル時間 1,885 ms
コンパイル使用メモリ 191,248 KB
最終ジャッジ日時 2025-01-17 16:15:33
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int64_t A, B, C;
  cin >> A >> B >> C;
  int64_t D = A - 1 + B;
  int64_t x = C / D;
  cout << x * A + (C - x * D) << '\n';
  return 0;
}
0