Submission #883545
Source Code Expand
#include <bits/stdc++.h> // {{{
// clang-format off
#define ARG4(_1, _2, _3, _4, ...) _4
#define rep(...) ARG4(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define REP(i, a) FOR(i, 0, a)
#define FOR(i, a, b) for (int i = (a); i < (int)(b); ++i)
#define rrep(...) ARG4(__VA_ARGS__, RFOR, RREP)(__VA_ARGS__)
#define RREP(i, a) RFOR(i, 0, a)
#define RFOR(i, a, b) for (int i = (b)-1; i >= (int)(a); --i)
#define ALL(c) (c).begin(), (c).end()
#define TEN(n) ((ll)(1e##n))
#define pb emplace_back
#define mp make_pair
#define fi first
#define se second
#define USE1(T) template <typename T> inline
#define USE2(T, U) template <typename T, typename U> inline
#define mygc(c) (c) = getchar_unlocked()
#define mypc(c) putchar_unlocked(c)
template <typename T> using duo = std::pair<T, T>;
template <typename T> using vec = std::vector<T>;
using ll = long long;
using pii = duo<int>;
USE2(T,U)bool chmax(T&x,U a){return x<a&&(x=a,1);}
USE2(T,U)bool chmin(T&x,U a){return a<x&&(x=a,1);}
USE1(T=int)T in(){T x;std::cin>>x;return x;}
USE1(T=int)vec<T>in(int n){vec<T>v;v.reserve(n);rep(i,n)v.pb(in<T>());return v;}
USE1(T)vec<std::pair<T,int>>zipi(const vec<T>&x,int s=0){int N=x.size();vec<std::pair<T,int>>v;v.reserve(N);rep(i,N)v.pb(x[i],s+i);return v;}
USE1(T)vec<T>ndvec(T v,int n){return vec<T>(n,v);}
USE2(T,...Ts)auto ndvec(T v,int n,Ts...ns)->vec<decltype(ndvec(v,ns...))>{return ndvec(ndvec(v,ns...),n);}
USE1(T)void pr(T x){std::cout<<x<<'\n';}
USE2(T,...Ts)void pr(T x,Ts...xs){std::cout<<x<<' ';pr(xs...);}
USE1(T=int)T rd(){T x=0,m=0,k;for(;;){mygc(k);if(k=='-'){m=1;break;}if('0'<=k&&k<='9'){x=k-'0';break;}}for(;;){mygc(k);if(k<'0'||'9'<k)break;x=x*10+k-'0';}return x;}
USE1(T=int)void wr(T x,char c='\n'){int s=0,m=0;char b[32];if(x<0)m=1,x=-x;for(;x;x/=10)b[s++]=x%10;if(!s)b[s++]=0;if(m)mypc('-');for(;s--;)mypc(b[s]+'0');mypc(c);}
// clang-format on
// }}}
using namespace std;
const int inf = 1001001001;
const ll infl = 1001001001001001001ll;
const int dd[] = {0, 1, 0, -1, 0};
signed main() {
int m = in();
if (m < 100) {
puts("00");
} else if (m <= 5000) {
printf("%02d\n", m / 100);
} else if (m <= 30000) {
printf("%d\n", m / 1000 + 50);
} else if (m <= 70000) {
printf("%d\n", (m / 1000 - 30) / 5 + 80);
} else {
puts("89");
}
return 0;
}
Submission Info
Submission Time |
|
Task |
B - 視程の通報 |
User |
orisano |
Language |
C++11 (GCC 4.8.1) |
Score |
100 |
Code Size |
2340 Byte |
Status |
AC |
Exec Time |
26 ms |
Memory |
924 KB |
Judge Result
Set Name |
all |
Score / Max Score |
100 / 100 |
Status |
|
Set Name |
Test Cases |
all |
00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt, test_18.txt, test_19.txt, test_20.txt, test_21.txt, test_22.txt, test_23.txt, test_24.txt, test_25.txt, test_26.txt, test_27.txt, test_28.txt, test_29.txt, test_30.txt, test_31.txt, test_32.txt, test_33.txt, test_34.txt, test_35.txt |
Case Name |
Status |
Exec Time |
Memory |
00_sample_01.txt |
AC |
25 ms |
800 KB |
00_sample_02.txt |
AC |
23 ms |
800 KB |
00_sample_03.txt |
AC |
23 ms |
800 KB |
test_01.txt |
AC |
26 ms |
860 KB |
test_02.txt |
AC |
24 ms |
800 KB |
test_03.txt |
AC |
25 ms |
800 KB |
test_04.txt |
AC |
25 ms |
800 KB |
test_05.txt |
AC |
26 ms |
800 KB |
test_06.txt |
AC |
23 ms |
800 KB |
test_07.txt |
AC |
23 ms |
800 KB |
test_08.txt |
AC |
24 ms |
796 KB |
test_09.txt |
AC |
26 ms |
804 KB |
test_10.txt |
AC |
25 ms |
800 KB |
test_11.txt |
AC |
23 ms |
796 KB |
test_12.txt |
AC |
25 ms |
800 KB |
test_13.txt |
AC |
25 ms |
924 KB |
test_14.txt |
AC |
24 ms |
920 KB |
test_15.txt |
AC |
26 ms |
796 KB |
test_16.txt |
AC |
23 ms |
792 KB |
test_17.txt |
AC |
23 ms |
792 KB |
test_18.txt |
AC |
25 ms |
804 KB |
test_19.txt |
AC |
25 ms |
800 KB |
test_20.txt |
AC |
26 ms |
796 KB |
test_21.txt |
AC |
25 ms |
800 KB |
test_22.txt |
AC |
24 ms |
912 KB |
test_23.txt |
AC |
25 ms |
920 KB |
test_24.txt |
AC |
25 ms |
800 KB |
test_25.txt |
AC |
25 ms |
796 KB |
test_26.txt |
AC |
24 ms |
920 KB |
test_27.txt |
AC |
26 ms |
880 KB |
test_28.txt |
AC |
25 ms |
796 KB |
test_29.txt |
AC |
25 ms |
796 KB |
test_30.txt |
AC |
25 ms |
924 KB |
test_31.txt |
AC |
23 ms |
800 KB |
test_32.txt |
AC |
25 ms |
800 KB |
test_33.txt |
AC |
26 ms |
800 KB |
test_34.txt |
AC |
24 ms |
800 KB |
test_35.txt |
AC |
26 ms |
804 KB |