When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

LightSky's blog

By LightSky, history, 5 years ago, translation, In English

Please, tell me why my code does not work on the test 7. Here is a link of my submission: 54374953

  • Vote: I like it
  • +1
  • Vote: I do not like it

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

Auto comment: topic has been translated by LightSky (original revision, translated revision, compare)

»
5 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

I think you didn't understand the problem well what is the meaning of this condition "if(sila[i]==ych) {j=shk[i]; break;}" he gives you k integers (the Chosen Ones) and you want to know if the ych'th (as in your code) person is the strongest in his school or not you may check my solution if you want 50745313

»
5 years ago, # |
  Vote: I like it +4 Vote: I do not like it

Thanks to BerserkVl and Mahmoud_Haddad for their help. I only did not read all problem's text. Now I have solved it. This is the link of my submission:54422096