akshita007's blog

By akshita007, history, 10 years ago, In English

I have the following submission for problem 691D:

http://mirror.codeforces.com/contest/691/submission/19104383

It says wrong answer on test 3.However I get the correct answer on my codeblocks compiler.

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
10 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I think it was a judge problem...

Your answer was right on test 3 : 19110166

»
10 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

In your code:

int s = arr[i].size();
int ans[s];
int arr1[s];

That's most likely your issue (Variable length arrays). Try:

int s = arr[i].size();
std::vector<int> ans(s);
std::vector<int> arr1(s);