CSES - Datatähti 2017 alku - Results
Submission details
Task:Bittijono
Sender:kapesu8
Submission time:2016-10-06 13:35:28 +0300
Language:C++
Status:READY
Result:10
Feedback
groupverdictscore
#1ACCEPTED10
#20
#30
Test results
testverdicttimegroup
#1ACCEPTED0.06 s1details
#20.14 s2details
#30.13 s3details

Code

#include <iostream>
#include <string>
#define uint unsigned int
int main()
{
std::string output_str = "0";
for(int i = 0;i < 10;i++)
{
int this_size = output_str.size();
for(int c = 0;c < this_size;c++)
{
if(output_str[c] == '0')
output_str.push_back('1');
else
output_str.push_back('0');
}
}
int count;
std::cin >> count;
for(int c = 0;c < count;c++)
{
int index;
std::cin >> index;
std::cout << output_str[index-1];
}
return 0;
}

Test details

Test 1

Group: 1

Verdict: ACCEPTED

input
100
62
9
12
73
...

correct output
1
1
1
0
1
...

user output
111010101011101001111011110110...

Test 2

Group: 2

Verdict:

input
100000
565433
141881
120108
825392
...

correct output
1
1
0
0
1
...

user output
(empty)

Test 3

Group: 3

Verdict:

input
100000
374768524402011755
937067109466254318
389256426086302899
932585725667010169
...

correct output
0
1
1
1
1
...

user output
(empty)