結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
![]() |
提出日時 | 2018-09-19 20:12:05 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 427 bytes |
コンパイル時間 | 482 ms |
コンパイル使用メモリ | 64,200 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-23 07:16:32 |
合計ジャッジ時間 | 1,008 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#include <iostream>using namespace std;static void setup(){cin.tie(0);ios::sync_with_stdio(false);}static void run(){int l, m, n;cin >> l >> m >> n;auto am = n / 25;n = n % 25;m += am;auto al = m / 4;m = m % 4;l += al;auto t = l / 10;l = l % 10;cout << l + m + n << endl;}int main(int argc, char **argv){setup();run();return 0;}