結果
| 問題 | No.604 誕生日のお小遣い |
| コンテスト | |
| ユーザー |
spb9876
|
| 提出日時 | 2017-12-04 11:42:00 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 236 bytes |
| コンパイル時間 | 421 ms |
| コンパイル使用メモリ | 56,284 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-28 15:06:53 |
| 合計ジャッジ時間 | 1,016 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 12 |
ソースコード
#include <iostream>
#include <string>
#include <vector>
#include <utility>
using namespace std;
int main(void){
long long a,b,c;
cin >> a >> b >> c;
long long x;
x = (c/(a+b-1))*a + c%(a+b-1);
cout << x << "\n";
return 0;
}
spb9876