結果
| 問題 | No.32 貯金箱の憂鬱 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-02-28 18:17:33 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| + 403µs | |
| コード長 | 564 bytes |
| 記録 | |
| コンパイル時間 | 938 ms |
| コンパイル使用メモリ | 178,676 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-23 21:22:04 |
| 合計ジャッジ時間 | 1,988 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
typedef long long ll;
int main() {
// ifstream in("data1.txt");
// cin.rdbuf(in.rdbuf());
int L, M, N;
cin >> L >> M >> N;
int ans = 0;
if(N >= 25){
M = M + N / 25;
ans += N % 25;
} else {
ans += N;
}
if(M >= 4){
L = L + M / 4;
ans += M % 4;
} else {
ans += M;
}
if(L >= 10){
ans += L % 10;
} else {
ans += L;
}
cout << ans << endl;
}