結果

問題 No.32 貯金箱の憂鬱
コンテスト
ユーザー 0htoAi
提出日時 2021-12-03 20:15:05
言語 C++14
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 5,000 ms
コード長 290 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,053 ms
コンパイル使用メモリ 182,980 KB
実行使用メモリ 6,144 KB
最終ジャッジ日時 2026-03-27 14:10:45
合計ジャッジ時間 1,772 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>

using namespace std;


bool Can(long long x)
{
	if(x%3==0)
	return true;
	while(x)
	{
		if(x%10==3)
		return true;
		x/=10;
	}
	return false;
}

int main()
{
	int a,b,c;
	cin>>a>>b>>c;
	int ans=0;
	ans+=c%25;
	b+=c/25;
	ans+=b%4;
	a+=b/4;
	ans+=a%10;
	cout<<ans;
}
0