結果
| 問題 | No.32 貯金箱の憂鬱 |
| コンテスト | |
| ユーザー |
TAKINBORI
|
| 提出日時 | 2019-02-11 13:20:56 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 354 bytes |
| 記録 | |
| コンパイル時間 | 289 ms |
| コンパイル使用メモリ | 72,404 KB |
| 実行使用メモリ | 7,976 KB |
| 最終ジャッジ日時 | 2026-04-03 13:13:06 |
| 合計ジャッジ時間 | 835 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include <iostream>
int main()
{
int L;
int M;
int N;
std::cin >> L;
std::cin >> M;
std::cin >> N;
while(N >= 25)
{
N -= 25;
M++;
}
while(M >= 4)
{
M -= 4;
L++;
}
while(L >= 10)
{
L -= 10;
}
std::cout << L + M + N << std::endl;
return 0;
}
TAKINBORI