結果
| 問題 |
No.604 誕生日のお小遣い
|
| コンテスト | |
| ユーザー |
Ryu
|
| 提出日時 | 2017-12-16 22:57:15 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 436 bytes |
| コンパイル時間 | 767 ms |
| コンパイル使用メモリ | 62,760 KB |
| 実行使用メモリ | 13,648 KB |
| 最終ジャッジ日時 | 2024-12-14 21:58:09 |
| 合計ジャッジ時間 | 14,103 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 TLE * 1 |
| other | AC * 16 TLE * 5 |
ソースコード
#include <iostream>
#include <algorithm>
#include <cmath>
#include <vector>
using namespace std;
long long int A, B, C, money = 0, age = 0;
int main()
{
cin >> A >> B >> C;
while(true)
{
age++;
if(age % A == 0)
{
money += B;
}
else
{
money += 1;
}
if(money >= C)
break;
}
cout << age << endl;
return 0;
}
Ryu