Task: | Bittijono |
Sender: | kapesu8 |
Submission time: | 2016-10-06 13:35:28 +0300 |
Language: | C++ |
Status: | READY |
Result: | 10 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 10 |
#2 | RUNTIME ERROR | 0 |
#3 | RUNTIME ERROR | 0 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | ACCEPTED | 0.06 s | 1 | details |
#2 | RUNTIME ERROR | 0.14 s | 2 | details |
#3 | RUNTIME ERROR | 0.13 s | 3 | details |
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: RUNTIME ERROR
input |
---|
100000 565433 141881 120108 825392 ... |
correct output |
---|
1 1 0 0 1 ... |
user output |
---|
(empty) |
Test 3
Group: 3
Verdict: RUNTIME ERROR
input |
---|
100000 374768524402011755 937067109466254318 389256426086302899 932585725667010169 ... |
correct output |
---|
0 1 1 1 1 ... |
user output |
---|
(empty) |