結果
| 問題 | No.604 誕生日のお小遣い |
| コンテスト | |
| ユーザー |
kyo1
|
| 提出日時 | 2021-01-11 22:01:23 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.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 |
ソースコード
#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;
}
kyo1