結果
| 問題 | 
                            No.128 お年玉(1)
                             | 
                    
| コンテスト | |
| ユーザー | 
                             shirano_c
                         | 
                    
| 提出日時 | 2015-07-10 10:25:46 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 2 ms / 5,000 ms | 
| コード長 | 285 bytes | 
| コンパイル時間 | 500 ms | 
| コンパイル使用メモリ | 54,564 KB | 
| 実行使用メモリ | 6,824 KB | 
| 最終ジャッジ日時 | 2024-10-01 09:59:38 | 
| 合計ジャッジ時間 | 1,172 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 21 | 
ソースコード
#include<iostream>
using namespace std;
int main()
{
	long long int budget, number,temp1,temp2,temp3,temp4,otosidama;
	cin >> budget >> number;
	temp1 = budget % 1000;
	temp2 = budget - temp1;
	temp3 = temp2 / 1000;
	temp4 = temp3/number;
	otosidama = temp4*1000;
	cout << otosidama;
}
            
            
            
        
            
shirano_c