ghorardim's blog

By ghorardim, history, 7 years ago, In English

I had solved this problem.Time limit of this problem is 1 sec.After complete of my all calculation I had run a big nested loop and submit that.Then I had surprised!!!I got AC and the execution time of that code as same as my real code. How it is possible??? Why I didn't get TLE?? Why the execution time as same as my real code??

Please anyone help me............

Full text and comments »

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

By ghorardim, history, 7 years ago, In English

I am getting TLE and I can't handle it.I know the is solved by 0-1 Knapsack.I also try this. I think i have some mistake in my code but I do not found it. Please anyone help me..... Problem :UVA-562 — Dividing coins my code :Cpp_Code

Full text and comments »

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

By ghorardim, history, 9 years ago, In English

I am trying to solve this problem.....

http://codeforces.me/problemset/problem/281/B

but i am continuously getting WA in a case.i check that case in pc's compiler it gives me correct output.i have copied my code and check it in custom test(codeforce compiler) and it gives different result. i can't found my mistake and can't found the solution :( here is my code http://codeforces.me/contest/281/submission/17562664

Plz anyone help me...

Full text and comments »

  • Vote: I like it
  • -21
  • Vote: I do not like it