Task: | Tickets |
Sender: | Uolevi |
Submission time: | 2018-07-04 18:10:45 +0300 |
Language: | C++ |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | RUNTIME ERROR | 0 |
#2 | TIME LIMIT EXCEEDED | 0 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | ACCEPTED | 0.02 s | 1 | details |
#2 | ACCEPTED | 0.01 s | 1 | details |
#3 | RUNTIME ERROR | 0.10 s | 1 | details |
#4 | TIME LIMIT EXCEEDED | -- | 2 | details |
#5 | TIME LIMIT EXCEEDED | -- | 2 | details |
#6 | RUNTIME ERROR | 0.10 s | 2 | details |
#7 | TIME LIMIT EXCEEDED | -- | 2 | details |
#8 | TIME LIMIT EXCEEDED | -- | 2 | details |
#9 | RUNTIME ERROR | 0.10 s | 2 | details |
#10 | TIME LIMIT EXCEEDED | -- | 2 | details |
Compiler report
input/code.cpp: In function 'int main()': input/code.cpp:13:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<ve[i-1].size();j++){ ~^~~~~~~~~~~~~~~ input/code.cpp:17:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=0;j<ve[i-1].size();j++){ ~^~~~~~~~~~~~~~~
Code
#include<bits/stdc++.h> using namespace std; int n; int m; vector<string> ve[21]; int main(){ cin >> n >> m; ve[0].push_back("0"); ve[0].push_back("1"); for(int i=1;i<n;i++){ for(int j=0;j<ve[i-1].size();j++){ ve[i].push_back("0"+ve[i-1][j]); //cout << ve[i-1][j] << " " << ve[i-1][ve[i-1].size()-j-1] << "\n"; } for(int j=0;j<ve[i-1].size();j++){ ve[i].push_back("1"+ve[i-1][ve[i-1].size()-j-1]); } } for(int i=0;i<n;i++){ for(auto u : ve[i]){ // cout << u << " "; } // cout << "\n"; } cout << ve[n-1][m-1]; }
Test details
Test 1
Group: 1
Verdict: ACCEPTED
input |
---|
7 85 |
correct output |
---|
1111110 |
user output |
---|
1111110 |
Test 2
Group: 1
Verdict: ACCEPTED
input |
---|
13 173 |
correct output |
---|
0000011111010 |
user output |
---|
0000011111010 |
Test 3
Group: 1
Verdict: RUNTIME ERROR
input |
---|
19 506935 |
correct output |
---|
1000110001000101101 |
user output |
---|
(empty) |
Test 4
Group: 2
Verdict: TIME LIMIT EXCEEDED
input |
---|
33 7115188065 |
correct output |
---|
101111100000101011011010011010... |
user output |
---|
(empty) |
Test 5
Group: 2
Verdict: TIME LIMIT EXCEEDED
input |
---|
38 262459861045 |
correct output |
---|
100011100101100011101001111100... |
user output |
---|
(empty) |
Test 6
Group: 2
Verdict: RUNTIME ERROR
input |
---|
45 26770081139000 |
correct output |
---|
101000111010010010111101110111... |
user output |
---|
(empty) |
Test 7
Group: 2
Verdict: TIME LIMIT EXCEEDED
input |
---|
49 144198060398585 |
correct output |
---|
011000010101101110110011100111... |
user output |
---|
(empty) |
Test 8
Group: 2
Verdict: TIME LIMIT EXCEEDED
input |
---|
52 1688586557587460 |
correct output |
---|
011100000000001000111110100100... |
user output |
---|
(empty) |
Test 9
Group: 2
Verdict: RUNTIME ERROR
input |
---|
58 50090466019539205 |
correct output |
---|
001110100100001111100000101100... |
user output |
---|
(empty) |
Test 10
Group: 2
Verdict: TIME LIMIT EXCEEDED
input |
---|
62 436075923621359553 |
correct output |
---|
000101000010111110000011100011... |
user output |
---|
(empty) |