結果
| 問題 | No.604 誕生日のお小遣い | 
| コンテスト | |
| ユーザー |  tnk123456 | 
| 提出日時 | 2017-12-05 17:52:48 | 
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 336 bytes | 
| コンパイル時間 | 457 ms | 
| コンパイル使用メモリ | 55,136 KB | 
| 実行使用メモリ | 13,640 KB | 
| 最終ジャッジ日時 | 2024-11-28 16:48:56 | 
| 合計ジャッジ時間 | 13,719 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 TLE * 1 | 
| other | AC * 16 TLE * 5 | 
ソースコード
#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;}
            
            
            
        