Submission #520256
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
#define FOR(i, s, n) for(int i = s; i < (int)n; ++i)
#define per(i, n) for(int i = n; i >= 0; i--)
#define ROF(i, s, n) for(int i = s; i >= (int)n; i--)
#define FORIT(i, A) for (auto i : A)
#define PRINT(x) cout << (x) << "\n"
#define ALL(a) (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define MP make_pair
#define PB push_back
#define EACH(i, n) for (__typeof((n).begin()) i = (n).begin(); i != (n).end(); ++i)
#define SZ(a) int((a).size())
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define CLR(a) memset((a), 0 ,sizeof(a))
#define NCLR(a) memset((a), -1 ,sizeof(a))
#define sq(n) (n) * (n)
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
typedef vector<LL> VLL;
typedef vector<VLL> VVLL;
typedef unsigned int uint;
typedef unsigned long long ull;
typedef priority_queue<int> maxpq;
typedef priority_queue< int, vector<int>, greater<int> > minpq;
typedef complex<double> Point;
static const double EPS = 1e-10;
static const double PI = acos( -1.0 );
static const int mod = 1000000007;
static const int INF = 1 << 29;
static const LL LL_INF = 1ll << 60;
static const int dx[] = { -1, 0, 1, 0, 1, -1, 1, -1 };
static const int dy[] = { 0, -1, 0, 1, 1, 1, -1, -1 };
#ifdef WIN32
#define dump(x) cerr << #x << " = " << (x) << "\n"
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << "\n"
#else
#define dump(x)
#define debug(x)
#endif
template<class T> ostream &operator<<( ostream &os, vector<T> &v ) {
for ( int i = 0; i < v.size(); i++ ) {
if ( i ) os << " ";
os << v[ i ];
}
return os;
}
int main() {
ios::sync_with_stdio( false );
cin.tie( 0 );
#ifdef WIN32
cerr << fixed;
#endif
cout << fixed;
int m;
cin >> m;
cout << setfill( '0' ) << setw( 2 );
if ( m <= 5000 )
{
PRINT( m / 100 );
}
else if ( m <= 30000 )
{
PRINT( m / 1000 + 50 );
}
else if ( m <= 70000 )
{
PRINT( ( m - 30 ) / 5 + 80 );
}
else
{
PRINT( 89 );
}
return 0;
}
Submission Info
Submission Time |
|
Task |
B - 視程の通報 |
User |
stone725 |
Language |
C++ (G++ 4.6.4) |
Score |
0 |
Code Size |
2214 Byte |
Status |
WA |
Exec Time |
49 ms |
Memory |
1632 KB |
Judge Result
Set Name |
all |
Score / Max Score |
0 / 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 |
49 ms |
1632 KB |
00_sample_02.txt |
AC |
40 ms |
1496 KB |
00_sample_03.txt |
AC |
40 ms |
1500 KB |
test_01.txt |
AC |
41 ms |
1504 KB |
test_02.txt |
AC |
40 ms |
1500 KB |
test_03.txt |
AC |
41 ms |
1628 KB |
test_04.txt |
AC |
39 ms |
1416 KB |
test_05.txt |
AC |
40 ms |
1504 KB |
test_06.txt |
AC |
39 ms |
1412 KB |
test_07.txt |
WA |
40 ms |
1628 KB |
test_08.txt |
WA |
40 ms |
1508 KB |
test_09.txt |
AC |
40 ms |
1440 KB |
test_10.txt |
AC |
39 ms |
1500 KB |
test_11.txt |
AC |
39 ms |
1504 KB |
test_12.txt |
AC |
41 ms |
1500 KB |
test_13.txt |
AC |
41 ms |
1632 KB |
test_14.txt |
AC |
41 ms |
1424 KB |
test_15.txt |
AC |
41 ms |
1628 KB |
test_16.txt |
AC |
40 ms |
1500 KB |
test_17.txt |
AC |
41 ms |
1496 KB |
test_18.txt |
AC |
39 ms |
1496 KB |
test_19.txt |
AC |
40 ms |
1508 KB |
test_20.txt |
AC |
40 ms |
1496 KB |
test_21.txt |
AC |
37 ms |
1500 KB |
test_22.txt |
AC |
38 ms |
1500 KB |
test_23.txt |
AC |
38 ms |
1500 KB |
test_24.txt |
AC |
40 ms |
1500 KB |
test_25.txt |
AC |
39 ms |
1632 KB |
test_26.txt |
WA |
37 ms |
1420 KB |
test_27.txt |
WA |
39 ms |
1512 KB |
test_28.txt |
WA |
38 ms |
1504 KB |
test_29.txt |
WA |
38 ms |
1508 KB |
test_30.txt |
WA |
40 ms |
1500 KB |
test_31.txt |
AC |
38 ms |
1508 KB |
test_32.txt |
AC |
39 ms |
1504 KB |
test_33.txt |
AC |
39 ms |
1504 KB |
test_34.txt |
AC |
38 ms |
1500 KB |
test_35.txt |
AC |
40 ms |
1500 KB |