Submission #592469
Source Code Expand
#include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <algorithm>
#include <numeric>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <functional>
#include <cmath>
#include <memory>
#ifndef ONLINE_JUDGE
# include <complex>
# include <random>
# include <array>
# include <unordered_map>
# include <unordered_set>
# define mkt make_tuple
#endif
#ifdef _LOCAL
# include "local/local.hpp"
#else
# define assert(...) ((void)0)
# define ifdebug if (false)
# define echo(...) ((void)0)
#endif
using namespace std;
typedef long long ll; typedef unsigned long long ull;
#define repi(_I, _B, _E) for(int _I = (_B); (_I) < (_E); ++ (_I))
#define rep(_I, _N) for(int _I = 0; (_I) < (_N); ++ (_I))
#define all(_X) (_X).begin(), (_X).end()
/*
bool is_zorome(ll n)
{
int d = n % 10;
n /= 10;
while ( n != 0 ) {
if ( n % 10 != d ) return false;
n /= 10;
}
return true;
}
int main()
{
ll n = 1;
rep(i, 50) {
while ( ! is_zorome(n) ) { ++ n; }
cout << n << endl;
++n;
}
return 0;
}
//*/
int zorome_seq[] =
{ 1
, 2
, 3
, 4
, 5
, 6
, 7
, 8
, 9
, 11
, 22
, 33
, 44
, 55
, 66
, 77
, 88
, 99
, 111
, 222
, 333
, 444
, 555
, 666
, 777
, 888
, 999
, 1111
, 2222
, 3333
, 4444
, 5555
, 6666
, 7777
, 8888
, 9999
, 11111
, 22222
, 33333
, 44444
, 55555
, 66666
, 77777
, 88888
, 99999
, 111111
, 222222
, 333333
, 444444
, 555555
};
int main()
{
int n;
cin >> n;
--n;
cout << zorome_seq[n] << endl;
return 0;
}
Submission Info
Submission Time |
|
Task |
A - ゾロ目数 |
User |
vain0 |
Language |
C++11 (GCC 4.9.2) |
Score |
100 |
Code Size |
1676 Byte |
Status |
AC |
Exec Time |
27 ms |
Memory |
928 KB |
Judge Result
Set Name |
Sample |
All |
Score / Max Score |
0 / 0 |
100 / 100 |
Status |
|
|
Set Name |
Test Cases |
Sample |
sample_01.txt, sample_02.txt, sample_03.txt |
All |
sample_01.txt, sample_02.txt, 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, test_36.txt, test_37.txt, test_38.txt, test_39.txt, test_40.txt, test_41.txt, test_42.txt, test_43.txt, test_44.txt, test_45.txt, test_46.txt, test_47.txt |
Case Name |
Status |
Exec Time |
Memory |
sample_01.txt |
AC |
27 ms |
800 KB |
sample_02.txt |
AC |
25 ms |
916 KB |
sample_03.txt |
AC |
26 ms |
808 KB |
test_01.txt |
AC |
26 ms |
796 KB |
test_02.txt |
AC |
26 ms |
808 KB |
test_03.txt |
AC |
23 ms |
796 KB |
test_04.txt |
AC |
25 ms |
800 KB |
test_05.txt |
AC |
26 ms |
736 KB |
test_06.txt |
AC |
26 ms |
676 KB |
test_07.txt |
AC |
24 ms |
800 KB |
test_08.txt |
AC |
25 ms |
800 KB |
test_09.txt |
AC |
26 ms |
800 KB |
test_10.txt |
AC |
25 ms |
800 KB |
test_11.txt |
AC |
27 ms |
676 KB |
test_12.txt |
AC |
26 ms |
800 KB |
test_13.txt |
AC |
24 ms |
928 KB |
test_14.txt |
AC |
26 ms |
804 KB |
test_15.txt |
AC |
25 ms |
800 KB |
test_16.txt |
AC |
26 ms |
672 KB |
test_17.txt |
AC |
25 ms |
924 KB |
test_18.txt |
AC |
26 ms |
796 KB |
test_19.txt |
AC |
27 ms |
916 KB |
test_20.txt |
AC |
26 ms |
912 KB |
test_21.txt |
AC |
26 ms |
920 KB |
test_22.txt |
AC |
25 ms |
728 KB |
test_23.txt |
AC |
25 ms |
920 KB |
test_24.txt |
AC |
26 ms |
804 KB |
test_25.txt |
AC |
26 ms |
920 KB |
test_26.txt |
AC |
26 ms |
796 KB |
test_27.txt |
AC |
26 ms |
792 KB |
test_28.txt |
AC |
27 ms |
732 KB |
test_29.txt |
AC |
25 ms |
676 KB |
test_30.txt |
AC |
25 ms |
800 KB |
test_31.txt |
AC |
25 ms |
800 KB |
test_32.txt |
AC |
24 ms |
796 KB |
test_33.txt |
AC |
24 ms |
796 KB |
test_34.txt |
AC |
26 ms |
924 KB |
test_35.txt |
AC |
26 ms |
812 KB |
test_36.txt |
AC |
24 ms |
800 KB |
test_37.txt |
AC |
26 ms |
804 KB |
test_38.txt |
AC |
25 ms |
796 KB |
test_39.txt |
AC |
25 ms |
808 KB |
test_40.txt |
AC |
26 ms |
796 KB |
test_41.txt |
AC |
25 ms |
736 KB |
test_42.txt |
AC |
26 ms |
920 KB |
test_43.txt |
AC |
26 ms |
920 KB |
test_44.txt |
AC |
25 ms |
924 KB |
test_45.txt |
AC |
26 ms |
800 KB |
test_46.txt |
AC |
26 ms |
792 KB |
test_47.txt |
AC |
26 ms |
804 KB |