結果
| 問題 | No.604 誕生日のお小遣い |
| コンテスト | |
| ユーザー |
tnk123456
|
| 提出日時 | 2017-12-05 17:52:48 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 336 bytes |
| 記録 | |
| コンパイル時間 | 324 ms |
| コンパイル使用メモリ | 69,880 KB |
| 実行使用メモリ | 9,728 KB |
| 最終ジャッジ日時 | 2026-05-22 16:47:03 |
| 合計ジャッジ時間 | 3,159 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 TLE * 1 |
| other | AC * 1 -- * 20 |
ソースコード
#include<iostream>
using namespace std;
typedef unsigned long long int ull ;
ull A;
ull B;
ull C;
int main(void){
cin >> A;
cin >> B;
cin >> C;
int i = 1;
ull money = 0;
while(true){
if(i % A == 0) money += B;
else money+= 1 ;
if(money >= C) break;
i++ ;
}
cout << i << endl;
return 0;}
tnk123456