S.HASHEMI's blog

By S.HASHEMI, 11 years ago, In English

Hi everyone.

Does anyone know how can I delete one of teams? I didn't find any delete button or hint for this.

Any help will be appreciated well.

Thanks and HF & GL!

UPD1: Best way till now: BestCoder_97 comment

Full text and comments »

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

By S.HASHEMI, 11 years ago, In English

Hi everyone.

Does anyone know how I can prevent failing in the gaps between C++ compilers?

Here are two of my experiences of this subject.

  1. First I faced a truly amazing difference between GNU 4.7 and MS in CodeForces Round #159 (Div. 2). When the contest was running I coded a code for problem C, but it get TLE on pretest 6(been compiled by GNU 4.7). Till the end of contest I couldn't fix it. After a while, just for joke, test my code with MS and it get AC by running just for 781ms for the worst test case while the other one uses the whole 2s time limit and get TLE. It happened to me another time in another contest.**Mr.MikeMirzayanov answered : “Yes, the compilers are different. You may contact their developers :-)”**. here's the code: GNU:2891506 , MS:2893238

  2. The second one is more exciting. One day I coded a code for problem A of CodeForces Round #165 which worked correctly for sample tests in my computer with compiler gcc 4.6.3 . I submitted it for been compiled by MS and it get compilation error (internal error). So I submitted it for been compiled by GNU 4.7 and it get WA on pretest 2(which was sample test 2). here's the code: GNU:3060066 , MS:3060060

I'm really getting confused. Can anyone help me?

Wish everyone well.

Full text and comments »

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