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