結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
TAKINBORI
|
| 提出日時 | 2019-02-11 13:20:56 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 354 bytes |
| コンパイル時間 | 425 ms |
| コンパイル使用メモリ | 56,440 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-07-23 07:26:24 |
| 合計ジャッジ時間 | 985 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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