結果

問題 No.32 貯金箱の憂鬱
ユーザー gedy01221406
提出日時 2019-10-09 22:05:09
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 5,000 ms
コード長 332 bytes
コンパイル時間 694 ms
コンパイル使用メモリ 65,784 KB
最終ジャッジ日時 2025-01-07 21:23:11
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
//#include <numeric>
//#include <vector>
//#include <cstdint>
//#include <string>
using namespace std;

int main() {
	int l, m, n;
	cin >> l >> m >> n;

	int a, b, c;
	int x, y;

	a = (100 * l + 25 * m + n) % 1000;
	x = a / 100;
	b = a % 100;
	y = b / 25;
	c = b % 25;

	cout << x + y + c << endl;

	return 0;

}
0