結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | pyranine |
提出日時 | 2020-12-14 18:43:30 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 726 bytes |
コンパイル時間 | 2,138 ms |
コンパイル使用メモリ | 165,692 KB |
実行使用メモリ | 4,348 KB |
最終ジャッジ日時 | 2023-10-20 05:08:55 |
合計ジャッジ時間 | 2,476 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 2 ms
4,348 KB |
testcase_02 | AC | 2 ms
4,348 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 2 ms
4,348 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
ソースコード
#include <bits/stdc++.h> using namespace std; using i8 = int8_t; using u8 = uint8_t; using i16 = int16_t; using u16 = uint16_t; using i32 = int32_t; using u32 = uint32_t; using i64 = int64_t; using u64 = uint64_t; using i128 = __int128_t; using u128 = __uint128_t; using f32 = float; using f64 = double; #define cauto const auto& #define rep(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i) #define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() ); #define ALL(x) (x).begin(),(x).end() int main() { int L, M, N; cin >> L >> M >> N; int sum = L * 100 + M * 25 + N; sum %= 1000; int ans = 0; ans += sum / 100; sum /= 100; ans += sum / 25; sum /= 25; ans += sum; printf("%d\n", ans); return 0; }