Submission #127943
Source Code Expand
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <deque>
#include <complex>
#include <stack>
#include <queue>
#include <cstdio>
#include <cctype>
#include <cstring>
#include <ctime>
#include <iterator>
#include <bitset>
#include <numeric>
#include <list>
#include <iomanip>
using namespace std;
typedef long long LL;
typedef pair<int,int> pii;
typedef pair<LL,LL> pll;
typedef vector<int> vint;
typedef vector<vector<int> > vvint;
typedef vector<long long> vll, vLL;
typedef vector<vector<long long> > vvll, vvLL;
#define VV(T) vector<vector< T > >
template <class T>
void initvv(vector<vector<T> > &v, int a, int b, const T &t = T()){
v.assign(a, vector<T>(b, t));
}
template <class F, class T>
void convert(const F &f, T &t){
stringstream ss;
ss << f;
ss >> t;
}
#define REP(i,n) for(int i=0;i<int(n);++i)
#define ALL(v) (v).begin(),(v).end()
#define RALL(v) (v).rbegin(),(v).rend()
#define PB push_back
#define MOD 1000000009LL
#define EPS 1e-8
int main(){
int a[140] = {};
a[0] = a[8] = 1;
a[5] = 2;
a[3] = 3;
a[1] = 4;
a[2] = a[7] = 9;
a[15] = a[22] = a[23] = a[24] = a[33] = a[74] = 10;
a[25] = a[48] = a[126] = 11;
a[11] = a[20] = a[50] = 12;
a[18] = a[40] = a[73] = 13;
a[21] = a[54] = a[75] = 15;
a[19] = a[29] = a[32] = 16;
a[13] = a[130] = 17;
a[14] = a[27] = 18;
a[9] = -4;
a[6] = -5;
a[16] = a[82] = 20;
a[12] = a[41] = 21;
a[10] = 24;
a[77] = 25;
a[62] = 27;
a[26] = a[83] = 30;
a[4] = 35;
a[64] = 38;
a[68] = 39;
a[115] = 40;
a[49] = a[124] = 43;
a[96] = a[121] = 45;
a[17] = a[119] = 49;
a[53] = 50;
a[136] = 52;
a[69] = 53;
a[28] = 56;
a[61] = 64;
a[36] = a[57] = 81;
a[99] = 61;
a[60] = 62;
a[46] = 67;
a[113] = 87;
a[112] = 88;
a[72] = a[87] = a[95] = -10;
a[55] = -11;
a[47] = a[51] = a[56] = a[111] = -12;
a[79] = -14;
a[45] = -15;
a[31] = a[117] = -17;
a[30] = -18;
a[70] = a[71] = -20;
a[34] = a[86] = -23;
a[123] = -27;
a[116] = -30;
a[59] = -37;
a[137] = -39;
a[38] = -43;
int t;
scanf("%d", &t);
printf("%d\n", a[t]);
return !a[t];
}
Submission Info
Compile Error
./Main.cpp: In function ‘int main()’:
./Main.cpp:124:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Judge Result
Set Name |
Case0 |
Case1 |
Case2 |
Case3 |
Case4 |
Case5 |
Case6 |
Case7 |
Case8 |
Case9 |
Case10 |
Case11 |
Case12 |
Case13 |
Case14 |
Case15 |
Case16 |
Case17 |
Case18 |
Case19 |
Case20 |
Case21 |
Case22 |
Case23 |
Case24 |
Case25 |
Case26 |
Case27 |
Case28 |
Case29 |
Case30 |
Case31 |
Case32 |
Case33 |
Case34 |
Case35 |
Case36 |
Case37 |
Case38 |
Case39 |
Case40 |
Case41 |
Case42 |
Case43 |
Case44 |
Case45 |
Case46 |
Case47 |
Case48 |
Case49 |
Case50 |
Case51 |
Case52 |
Case53 |
Case54 |
Case55 |
Case56 |
Case57 |
Case58 |
Case59 |
Case60 |
Case61 |
Case62 |
Case63 |
Case64 |
Case65 |
Case66 |
Case67 |
Case68 |
Case69 |
Case70 |
Case71 |
Case72 |
Case73 |
Case74 |
Case75 |
Case76 |
Case77 |
Case78 |
Case79 |
Case80 |
Case81 |
Case82 |
Case83 |
Case84 |
Case85 |
Case86 |
Case87 |
Case88 |
Case89 |
Case90 |
Case91 |
Case92 |
Case93 |
Case94 |
Case95 |
Case96 |
Case97 |
Case98 |
Case99 |
Case100 |
Case101 |
Case102 |
Case103 |
Case104 |
Case105 |
Case106 |
Case107 |
Case108 |
Case109 |
Case110 |
Case111 |
Case112 |
Case113 |
Case114 |
Case115 |
Case116 |
Case117 |
Case118 |
Case119 |
Case120 |
Case121 |
Case122 |
Case123 |
Case124 |
Case125 |
Case126 |
Case127 |
Case128 |
Case129 |
Case130 |
Case131 |
Case132 |
Case133 |
Case134 |
Case135 |
Case136 |
Case137 |
Case138 |
Case139 |
Score / Max Score |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
0 / 2 |
2 / 2 |
0 / 2 |
2 / 2 |
0 / 2 |
2 / 2 |
2 / 2 |
0 / 2 |
0 / 2 |
0 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
2 / 2 |
0 / 2 |
2 / 2 |
2 / 2 |
4 / 4 |
4 / 4 |
4 / 4 |
0 / 4 |
4 / 4 |
4 / 4 |
4 / 4 |
4 / 4 |
0 / 4 |
4 / 4 |
0 / 4 |
0 / 4 |
0 / 4 |
4 / 4 |
4 / 4 |
4 / 4 |
4 / 4 |
4 / 4 |
4 / 4 |
4 / 4 |
4 / 4 |
0 / 4 |
4 / 4 |
0 / 4 |
4 / 4 |
0 / 4 |
0 / 4 |
4 / 4 |
4 / 4 |
0 / 4 |
0 / 4 |
4 / 4 |
4 / 4 |
0 / 4 |
0 / 4 |
0 / 5 |
0 / 5 |
0 / 5 |
0 / 5 |
0 / 5 |
5 / 5 |
5 / 5 |
0 / 5 |
0 / 5 |
5 / 5 |
0 / 5 |
0 / 5 |
0 / 5 |
0 / 5 |
0 / 5 |
0 / 5 |
0 / 5 |
0 / 5 |
0 / 5 |
0 / 5 |
0 / 5 |
5 / 5 |
5 / 5 |
5 / 5 |
0 / 5 |
5 / 5 |
5 / 5 |
5 / 5 |
0 / 5 |
5 / 5 |
0 / 5 |
5 / 5 |
0 / 5 |
5 / 5 |
5 / 5 |
0 / 5 |
5 / 5 |
0 / 5 |
0 / 5 |
0 / 5 |
5 / 5 |
0 / 5 |
0 / 5 |
0 / 5 |
0 / 5 |
0 / 5 |
5 / 5 |
5 / 5 |
0 / 5 |
0 / 5 |
Status |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set Name |
Test Cases |
Case0 |
000.txt |
Case1 |
001.txt |
Case2 |
002.txt |
Case3 |
003.txt |
Case4 |
004.txt |
Case5 |
005.txt |
Case6 |
006.txt |
Case7 |
007.txt |
Case8 |
008.txt |
Case9 |
009.txt |
Case10 |
010.txt |
Case11 |
011.txt |
Case12 |
012.txt |
Case13 |
013.txt |
Case14 |
014.txt |
Case15 |
015.txt |
Case16 |
016.txt |
Case17 |
017.txt |
Case18 |
018.txt |
Case19 |
019.txt |
Case20 |
020.txt |
Case21 |
021.txt |
Case22 |
022.txt |
Case23 |
023.txt |
Case24 |
024.txt |
Case25 |
025.txt |
Case26 |
026.txt |
Case27 |
027.txt |
Case28 |
028.txt |
Case29 |
029.txt |
Case30 |
030.txt |
Case31 |
031.txt |
Case32 |
032.txt |
Case33 |
033.txt |
Case34 |
034.txt |
Case35 |
035.txt |
Case36 |
036.txt |
Case37 |
037.txt |
Case38 |
038.txt |
Case39 |
039.txt |
Case40 |
040.txt |
Case41 |
041.txt |
Case42 |
042.txt |
Case43 |
043.txt |
Case44 |
044.txt |
Case45 |
045.txt |
Case46 |
046.txt |
Case47 |
047.txt |
Case48 |
048.txt |
Case49 |
049.txt |
Case50 |
050.txt |
Case51 |
051.txt |
Case52 |
052.txt |
Case53 |
053.txt |
Case54 |
054.txt |
Case55 |
055.txt |
Case56 |
056.txt |
Case57 |
057.txt |
Case58 |
058.txt |
Case59 |
059.txt |
Case60 |
060.txt |
Case61 |
061.txt |
Case62 |
062.txt |
Case63 |
063.txt |
Case64 |
064.txt |
Case65 |
065.txt |
Case66 |
066.txt |
Case67 |
067.txt |
Case68 |
068.txt |
Case69 |
069.txt |
Case70 |
070.txt |
Case71 |
071.txt |
Case72 |
072.txt |
Case73 |
073.txt |
Case74 |
074.txt |
Case75 |
075.txt |
Case76 |
076.txt |
Case77 |
077.txt |
Case78 |
078.txt |
Case79 |
079.txt |
Case80 |
080.txt |
Case81 |
081.txt |
Case82 |
082.txt |
Case83 |
083.txt |
Case84 |
084.txt |
Case85 |
085.txt |
Case86 |
086.txt |
Case87 |
087.txt |
Case88 |
088.txt |
Case89 |
089.txt |
Case90 |
090.txt |
Case91 |
091.txt |
Case92 |
092.txt |
Case93 |
093.txt |
Case94 |
094.txt |
Case95 |
095.txt |
Case96 |
096.txt |
Case97 |
097.txt |
Case98 |
098.txt |
Case99 |
099.txt |
Case100 |
100.txt |
Case101 |
101.txt |
Case102 |
102.txt |
Case103 |
103.txt |
Case104 |
104.txt |
Case105 |
105.txt |
Case106 |
106.txt |
Case107 |
107.txt |
Case108 |
108.txt |
Case109 |
109.txt |
Case110 |
110.txt |
Case111 |
111.txt |
Case112 |
112.txt |
Case113 |
113.txt |
Case114 |
114.txt |
Case115 |
115.txt |
Case116 |
116.txt |
Case117 |
117.txt |
Case118 |
118.txt |
Case119 |
119.txt |
Case120 |
120.txt |
Case121 |
121.txt |
Case122 |
122.txt |
Case123 |
123.txt |
Case124 |
124.txt |
Case125 |
125.txt |
Case126 |
126.txt |
Case127 |
127.txt |
Case128 |
128.txt |
Case129 |
129.txt |
Case130 |
130.txt |
Case131 |
131.txt |
Case132 |
132.txt |
Case133 |
133.txt |
Case134 |
134.txt |
Case135 |
135.txt |
Case136 |
136.txt |
Case137 |
137.txt |
Case138 |
138.txt |
Case139 |
139.txt |
Case Name |
Status |
Exec Time |
Memory |
000.txt |
AC |
21 ms |
804 KB |
001.txt |
AC |
21 ms |
800 KB |
002.txt |
AC |
20 ms |
804 KB |
003.txt |
AC |
21 ms |
804 KB |
004.txt |
AC |
21 ms |
800 KB |
005.txt |
AC |
20 ms |
920 KB |
006.txt |
AC |
22 ms |
676 KB |
007.txt |
AC |
20 ms |
796 KB |
008.txt |
AC |
23 ms |
748 KB |
009.txt |
AC |
20 ms |
928 KB |
010.txt |
AC |
21 ms |
924 KB |
011.txt |
AC |
21 ms |
804 KB |
012.txt |
AC |
21 ms |
924 KB |
013.txt |
AC |
22 ms |
796 KB |
014.txt |
AC |
22 ms |
800 KB |
015.txt |
AC |
22 ms |
792 KB |
016.txt |
AC |
22 ms |
800 KB |
017.txt |
AC |
21 ms |
924 KB |
018.txt |
AC |
20 ms |
924 KB |
019.txt |
AC |
21 ms |
928 KB |
020.txt |
AC |
22 ms |
788 KB |
021.txt |
AC |
22 ms |
924 KB |
022.txt |
AC |
22 ms |
804 KB |
023.txt |
AC |
22 ms |
804 KB |
024.txt |
AC |
22 ms |
804 KB |
025.txt |
AC |
20 ms |
924 KB |
026.txt |
AC |
23 ms |
800 KB |
027.txt |
AC |
20 ms |
796 KB |
028.txt |
AC |
22 ms |
800 KB |
029.txt |
AC |
20 ms |
796 KB |
030.txt |
AC |
22 ms |
800 KB |
031.txt |
AC |
22 ms |
804 KB |
032.txt |
AC |
22 ms |
800 KB |
033.txt |
AC |
24 ms |
732 KB |
034.txt |
AC |
21 ms |
800 KB |
035.txt |
RE |
22 ms |
920 KB |
036.txt |
AC |
22 ms |
796 KB |
037.txt |
RE |
23 ms |
676 KB |
038.txt |
AC |
22 ms |
800 KB |
039.txt |
RE |
22 ms |
672 KB |
040.txt |
AC |
22 ms |
804 KB |
041.txt |
AC |
20 ms |
840 KB |
042.txt |
RE |
20 ms |
792 KB |
043.txt |
RE |
21 ms |
800 KB |
044.txt |
RE |
20 ms |
704 KB |
045.txt |
AC |
21 ms |
928 KB |
046.txt |
AC |
22 ms |
800 KB |
047.txt |
AC |
20 ms |
748 KB |
048.txt |
AC |
20 ms |
924 KB |
049.txt |
AC |
21 ms |
800 KB |
050.txt |
AC |
20 ms |
920 KB |
051.txt |
AC |
19 ms |
800 KB |
052.txt |
RE |
19 ms |
672 KB |
053.txt |
AC |
20 ms |
672 KB |
054.txt |
AC |
21 ms |
796 KB |
055.txt |
AC |
21 ms |
796 KB |
056.txt |
AC |
20 ms |
800 KB |
057.txt |
AC |
21 ms |
800 KB |
058.txt |
RE |
20 ms |
676 KB |
059.txt |
AC |
20 ms |
672 KB |
060.txt |
AC |
20 ms |
928 KB |
061.txt |
AC |
20 ms |
800 KB |
062.txt |
AC |
20 ms |
924 KB |
063.txt |
RE |
20 ms |
920 KB |
064.txt |
AC |
20 ms |
800 KB |
065.txt |
RE |
20 ms |
676 KB |
066.txt |
RE |
20 ms |
804 KB |
067.txt |
RE |
21 ms |
920 KB |
068.txt |
AC |
21 ms |
796 KB |
069.txt |
AC |
20 ms |
800 KB |
070.txt |
AC |
21 ms |
804 KB |
071.txt |
AC |
21 ms |
792 KB |
072.txt |
AC |
21 ms |
800 KB |
073.txt |
AC |
21 ms |
732 KB |
074.txt |
AC |
21 ms |
672 KB |
075.txt |
AC |
21 ms |
676 KB |
076.txt |
RE |
21 ms |
676 KB |
077.txt |
AC |
21 ms |
804 KB |
078.txt |
RE |
21 ms |
800 KB |
079.txt |
AC |
21 ms |
800 KB |
080.txt |
RE |
21 ms |
928 KB |
081.txt |
RE |
20 ms |
704 KB |
082.txt |
AC |
21 ms |
800 KB |
083.txt |
AC |
21 ms |
804 KB |
084.txt |
RE |
21 ms |
736 KB |
085.txt |
RE |
20 ms |
800 KB |
086.txt |
AC |
21 ms |
804 KB |
087.txt |
AC |
21 ms |
800 KB |
088.txt |
RE |
21 ms |
800 KB |
089.txt |
RE |
20 ms |
796 KB |
090.txt |
RE |
21 ms |
764 KB |
091.txt |
RE |
21 ms |
800 KB |
092.txt |
RE |
21 ms |
804 KB |
093.txt |
RE |
21 ms |
800 KB |
094.txt |
RE |
21 ms |
800 KB |
095.txt |
AC |
21 ms |
800 KB |
096.txt |
AC |
21 ms |
796 KB |
097.txt |
RE |
21 ms |
736 KB |
098.txt |
RE |
21 ms |
796 KB |
099.txt |
AC |
21 ms |
700 KB |
100.txt |
RE |
21 ms |
736 KB |
101.txt |
RE |
21 ms |
804 KB |
102.txt |
RE |
22 ms |
732 KB |
103.txt |
RE |
21 ms |
924 KB |
104.txt |
RE |
21 ms |
800 KB |
105.txt |
RE |
21 ms |
800 KB |
106.txt |
RE |
21 ms |
924 KB |
107.txt |
RE |
20 ms |
804 KB |
108.txt |
RE |
21 ms |
800 KB |
109.txt |
RE |
20 ms |
676 KB |
110.txt |
RE |
21 ms |
804 KB |
111.txt |
AC |
19 ms |
920 KB |
112.txt |
AC |
21 ms |
800 KB |
113.txt |
AC |
20 ms |
796 KB |
114.txt |
RE |
21 ms |
732 KB |
115.txt |
AC |
20 ms |
800 KB |
116.txt |
AC |
21 ms |
804 KB |
117.txt |
AC |
21 ms |
804 KB |
118.txt |
RE |
20 ms |
804 KB |
119.txt |
AC |
20 ms |
924 KB |
120.txt |
RE |
20 ms |
924 KB |
121.txt |
AC |
21 ms |
924 KB |
122.txt |
RE |
20 ms |
672 KB |
123.txt |
AC |
21 ms |
736 KB |
124.txt |
AC |
20 ms |
804 KB |
125.txt |
RE |
21 ms |
796 KB |
126.txt |
AC |
22 ms |
808 KB |
127.txt |
RE |
21 ms |
804 KB |
128.txt |
RE |
20 ms |
732 KB |
129.txt |
RE |
21 ms |
924 KB |
130.txt |
AC |
20 ms |
804 KB |
131.txt |
RE |
21 ms |
804 KB |
132.txt |
RE |
21 ms |
804 KB |
133.txt |
RE |
21 ms |
804 KB |
134.txt |
RE |
20 ms |
804 KB |
135.txt |
RE |
21 ms |
804 KB |
136.txt |
AC |
21 ms |
924 KB |
137.txt |
AC |
21 ms |
732 KB |
138.txt |
RE |
21 ms |
672 KB |
139.txt |
RE |
21 ms |
804 KB |