結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | mell1 |
提出日時 | 2018-11-22 15:20:09 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 303 bytes |
コンパイル時間 | 410 ms |
コンパイル使用メモリ | 55,680 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-23 07:19:03 |
合計ジャッジ時間 | 1,000 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { int a, b, c, d; cin >> a >> b >> c; d = c / 25; c -= 25 * d; b += d; d = b / 4; b -= d * 4; a += d; d = a / 10; a -= d * 10; cout << a + b + c << endl; return 0; }