結果

問題 No.32 貯金箱の憂鬱
ユーザー kuromaru613
提出日時 2019-03-03 19:57:30
言語 C++11
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 1,968 bytes
コンパイル時間 1,080 ms
コンパイル使用メモリ 86,580 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-23 07:28:45
合計ジャッジ時間 1,394 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
プレゼンテーションモードにする

/*
!
Twitter
*/
//include
#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<iomanip>
#include<math.h>
#include<complex>
#include<queue>
#include<deque>
#include<stack>
#include<map>
#include<set>
#include<bitset>
#include<functional>
#include<assert.h>
#include<numeric>
#include<stdio.h>
#include<cstring>
//namespace
using namespace std;
//
#define REP(i, m, n) for(int i=(int)m; i<(int)n; ++i)
#define rep(i, n) REP(i, 0, n)
//
#define all_range(C) begin(C), end(C)
//
typedef long long ll;
typedef pair<int,int> pint;
typedef pair<ll,int> pli;
typedef pair<string,int> pst;
const int inf = 1e9+7;
const ll longinf = 1LL<<60;
const ll mod = 1e9+7;
//
template<typename T1, typename T2> inline void chmin(T1 &a, T2 b) {if(a>b) a=b;}
template<typename T1, typename T2> inline void chmax(T1 &a, T2 b) {if(a<b) a=b;}
//
//
ll my_gcd(ll x, ll y) {
ll r;
while(y!=0) {
r = x%y;
x = y;
y = r;
}
return x;
}
//
ll my_lcm(ll x, ll y) {
return (x*y)/my_gcd(x,y);
}
//xy10^18
ll my_pow(ll x, ll y) {
ll sum = 1;
while(y>0) {
sum *= x;
--y;
}
return sum;
}
/*
*/
//main.cpp----------------------------
#define max_m 200
void solve();
int l, m, n;
int main() {
cin >> l >> m >> n;
solve();
return 0;
}
void solve() {
m += n/25;
n %= 25;
l += m/4;
m %= 4;
l %= 10;
cout << l + m + n << endl;
}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0