結果
| 問題 |
No.604 誕生日のお小遣い
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-06 22:56:45 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 225 bytes |
| コンパイル時間 | 533 ms |
| コンパイル使用メモリ | 53,976 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-06-26 10:51:23 |
| 合計ジャッジ時間 | 2,959 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 TLE * 1 |
| other | AC * 1 -- * 20 |
ソースコード
#include <iostream>
using namespace std;
int main(){
long long int a,b,c,money,age;
cin>>a>>b>>c;
money=0;
age=0;
while(1){
age++;
if(age%a==0)money+=b;
else money+=1;
if(money>=c)break;
}
cout<<age<<endl;
}