結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | luckykenstar |
提出日時 | 2018-03-08 00:28:44 |
言語 | C++14 (gcc 13.2.0 + boost 1.83.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 455 bytes |
コンパイル時間 | 533 ms |
コンパイル使用メモリ | 67,364 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-30 07:42:56 |
合計ジャッジ時間 | 1,241 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,376 KB |
testcase_01 | AC | 2 ms
4,380 KB |
testcase_02 | AC | 1 ms
4,376 KB |
testcase_03 | AC | 2 ms
4,376 KB |
testcase_04 | AC | 1 ms
4,376 KB |
testcase_05 | AC | 1 ms
4,376 KB |
testcase_06 | AC | 1 ms
4,376 KB |
testcase_07 | AC | 1 ms
4,380 KB |
testcase_08 | AC | 2 ms
4,376 KB |
testcase_09 | AC | 2 ms
4,376 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
ソースコード
#include<iostream> #include<vector> #include<algorithm> using namespace std; int main() { int L,M,S; int sum = 0; cin >> L >> M >> S; if (S > 25) { M += S/25; sum += S%25; }else{ sum += S; } if (M > 4) { L += M/4; sum += M%4; }else{ sum += M; } if (L > 10) { sum += L%10; }else{ sum += L; } cout << sum << endl; return 0; }