結果

問題 No.32 貯金箱の憂鬱
ユーザー elphe
提出日時 2025-09-21 23:29:14
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 398 bytes
コンパイル時間 2,941 ms
コンパイル使用メモリ 275,436 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-09-21 23:29:18
合計ジャッジ時間 3,539 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

[[nodiscard]] static inline constexpr uint_fast32_t solve(uint_fast32_t L, uint_fast32_t M, uint_fast32_t N) noexcept
{
	M += N / 25, N %= 25;
	L += M / 4, M %= 4;
	L %= 10;

	return L + M + N;
}

int main()
{
	std::cin.tie(nullptr);
	std::ios::sync_with_stdio(false);
	
	uint_fast32_t L, M, N;
	std::cin >> L >> M >> N;

	std::cout << solve(L, M, N) << '\n';
	return 0;
}
0