結果

問題 No.604 誕生日のお小遣い
ユーザー pin
提出日時 2017-12-04 00:18:37
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 348 bytes
コンパイル時間 1,227 ms
コンパイル使用メモリ 81,844 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-28 15:03:01
合計ジャッジ時間 1,533 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <iomanip>
#include <cstring>
#include <algorithm> 
#include <math.h>
#include <queue>
#include <functional>
#include <map>
#include <vector>
#include <string>
using namespace std;
typedef long long ll;

int main(void){
    ll a, b, c;
    cin >> a >> b >> c;
    cout << a*(c / (a + b - 1)) + c % (a + b - 1) << endl;
}
0