結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | kichirb3 |
提出日時 | 2018-03-01 08:07:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 550 bytes |
コンパイル時間 | 506 ms |
コンパイル使用メモリ | 63,232 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-23 07:05:21 |
合計ジャッジ時間 | 1,063 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
// No.32 貯金箱の憂鬱 // https://yukicoder.me/problems/no/32 // #include <iostream> using namespace std; unsigned int solve(unsigned int L, unsigned int M, unsigned int N); int main() { unsigned int L, M, N; cin >> L >> M >> N; unsigned int ans = solve(L, M, N); cout << ans << endl; } unsigned int solve(unsigned int L, unsigned int M, unsigned int N) { unsigned int coin_total = 0; coin_total += N % 25; M += N / 25; coin_total += M % 4; L += M / 4; coin_total += L % 10; return coin_total; }