結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
![]() |
提出日時 | 2016-02-15 21:38:05 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 407 ms |
コンパイル使用メモリ | 55,428 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-23 02:15:45 |
合計ジャッジ時間 | 1,016 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#include <iostream>using namespace std;int main() {int l, m, n, money, ans;cin >> l >> m >> n;money = (l * 100 + m * 25 + n) % 1000;ans = money / 100;money %= 100;ans += money / 25;money %= 25;ans += money;cout << ans << endl;return 0;}