arjun_9426's blog

By arjun_9426, history, 6 years ago, In English

hello friend, i suffer a lot because of comparison functions and classes for sorting and STL data structures please help me in clearing this

comparison functions ex-> (1).when i try to sort using comparison function like->https://ideone.com/owtUzJ here problem comes when i try to sort according to my wish (2). sometimes even vectors of simple numbers give TLE or runtime error when i try to sort them using comparision function eg->https://ideone.com/FhzWw2

classes and structs https://ideone.com/FhzWw2 in this case it reinsert the value???

https://ideone.com/0POMaG in this case it reinsert the key value pair instead of just updating it???

https://ideone.com/Ae2DMR(another example where entry repeats)

please help me in this, i have suffered a lot because of this, recent one is (1)https://codeforces.net/contest/1082/submission/47244078(runtime error) (2)https://codeforces.net/contest/1082/submission/47244104(accepted) both codes are exactly same, i have just managed the comparison function benefits through extra code in 2nd one.

please somebody tell if there is any other way to use these functions/structs more effectively, else what and how we can use them . please somebody help

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it

By arjun_9426, history, 6 years ago, In English

today in a problem of div 3 contest, the IDEs which i generally use are printing right(correct) answers but codeforces's IDE printing a different one(wrong answer). pls help code is quite clean,codeforces's custom invocation also printing the wrong answer how it is possible.. code:-> http://codeforces.net/contest/1006/submission/40444220 IDE's which i use generally:-> https://ide.codingblocks.com/#/ , https://www.codechef.com/ide

Full text and comments »

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

By arjun_9426, history, 6 years ago, In English

what is hacking phase please explain it a bit and what do we mean by hack .can it be done during the contest or only in open hacking phase after contest time(if it is there)

Full text and comments »

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