結果

問題 No.32 貯金箱の憂鬱
ユーザー HIBIKU
提出日時 2016-12-31 18:41:04
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 236 bytes
コンパイル時間 446 ms
コンパイル使用メモリ 53,496 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-23 02:28:15
合計ジャッジ時間 1,023 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std;
int main() {
	int l, m, n, sum = 0, ans = 0;
	int w[3] = { 1000,100,25 };
	cin >> l >> m >> n;
	sum = l * 100 + m * 25 + n;
	printf("%d\n", sum / 100 % 10 + sum / 25 % 4 + sum % 25);
	return 0;
}
0