結果
| 問題 |
No.128 お年玉(1)
|
| コンテスト | |
| ユーザー |
shirano_c
|
| 提出日時 | 2015-07-10 10:22:59 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 275 bytes |
| コンパイル時間 | 386 ms |
| コンパイル使用メモリ | 53,464 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-01 09:59:43 |
| 合計ジャッジ時間 | 2,823 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 RE * 16 |
ソースコード
#include<iostream>
using namespace std;
int main()
{
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