qasw110983's blog

By qasw110983, history, 7 weeks ago, In English

I've tried submitting a solution to problem ------>167785392 But I get Idleness limit exceeded on test 3, I modified a small part ------>167782691, but it seems to be working Ok, I don't know why,how it works?it confuses me.

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

»
7 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by qasw110983 (previous revision, new revision, compare).

»
7 weeks ago, # |
Rev. 2   Vote: I like it +5 Vote: I do not like it

For your Idleness limit exceeded sub, I think you forgot to consider the case when q1.size() == 1 after the while loop.

  • »
    »
    7 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Yessss!Thanks for reminding me,if n==6,then q1.size()will equal 1,there is no answer.Thx u very much,I always make mistakes in details.You've helped me a lot!:)