結果

問題 No.128 お年玉(1)
コンテスト
ユーザー shirano_c
提出日時 2015-07-10 10:22:59
言語 C++11
(gcc 15.3.0 + boost 1.92.0)
コンパイル:
g++-15 -O2 -lm -std=gnu++11 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 275 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 254 ms
コンパイル使用メモリ 67,732 KB
実行使用メモリ 9,780 KB
最終ジャッジ日時 2026-09-07 10:45:57
合計ジャッジ時間 1,709 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5 WA * 16
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#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;
}
0