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

Автор __Tesseract4, 3 года назад, По-английски

I don't get how pragma optimizations move a solution with same time complexity from 4 sec to 1092 ms ?! It is today's H1 ! I wouldn't have accept anyways because I had a printing bug ..

But how same time complexity result in 4 sec and 1 sec running times!! Only due to pragmas

Also some comments: I think the round was horrible, unfair and H1, H2 were OEISable, A-B pretests were too weak. D was a too weird adhoc.

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

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

If you first use include then pragma it does not work I don't know why

first pragma then include (tle): https://codeforces.me/contest/1916/submission/239806977

first include then pragma (ac): https://codeforces.me/contest/1916/submission/239742895

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

See 896E and the author's editorial.

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

Actually I think D is a nice problem.Very strange but also beautiful.