結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-02-28 18:17:33 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 564 bytes |
| コンパイル時間 | 1,503 ms |
| コンパイル使用メモリ | 165,536 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-23 07:51:21 |
| 合計ジャッジ時間 | 2,038 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}