結果
| 問題 | No.604 誕生日のお小遣い |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-04-06 22:56:45 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 225 bytes |
| 記録 | |
| コンパイル時間 | 328 ms |
| コンパイル使用メモリ | 70,136 KB |
| 実行使用メモリ | 12,672 KB |
| 最終ジャッジ日時 | 2026-03-13 03:50:35 |
| 合計ジャッジ時間 | 13,479 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 TLE * 1 |
| other | AC * 16 TLE * 5 |
ソースコード
#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;
}