Блог пользователя bugfree786

Автор bugfree786, история, 6 лет назад, По-английски

Hello This is Mehtab Butt from Pakistan I really need the help of the code forces community because I am new at this platform and on the submission of my Nezzar and Symmetric Array, the problem I am getting the error Idleness limit exceeded. I am coding in c#. I did not find any satisfactory solution on google as well.

Link to my code: https://codeforces.me/contest/1478/submission/106223889

  • Проголосовать: нравится
  • +9
  • Проголосовать: не нравится

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

Your GetInput() method can't properly parse lines consisting of multiple integers. It just skips them and will wait for more input.

Also, don't write your own sort, at least if it is insertion/bubble/selection sort. It will TLE if the input is longer than $$$10^4$$$. Also also, rwad some style guide for C#. Method names usually start with capital letters and don't contain underscores.