vasanthaganesh's blog

By vasanthaganesh, history, 5 years ago, In English

[submission:78249878][submission:78248612][problem:339C]

I've been stuck on this problem. The question says if there are multiple possible answers, print any of them. My answers do not seem to pass. I think they are correct. Can you please tell me why my answers are wrong?

Test case 1:

0000000101
3

My answer:

YES
10 8 10

Wrong answer on test case 4:

Test case 2:

1111111111
1000

My answer:

1 2 3 1 2 1 2...

Thanks in advance, Vasanth.

Full text and comments »

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

By vasanthaganesh, history, 8 years ago, In English

I tried to solve WACHOVIA on SPOJ with Haskell and here is my submission. I am getting time limit exceeded. Please help.

Edit: I used ByteString instead of String, but it still fails.

Full text and comments »

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

By vasanthaganesh, history, 8 years ago, In English

I tried to solve 710A - King Moves in Haskell and here: 20077987 is my submission. The program works on my computer but produces a run-time error when submitted. Please help.

Full text and comments »

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

By vasanthaganesh, history, 9 years ago, In English

link to the question: http://mirror.codeforces.com/contest/455/problem/A

language: python 2.7

submission: 15453370

Hello guys! I have encountered a very peculiar situation wherein my code works properly for 11 testcases but on the 12th testcase I get a runtime error.Please do look into the source code and suggest corrections.

Full text and comments »

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