fmfkfd's blog

By fmfkfd, history, 8 years ago, In English

The code I have writen is giving correct answer in my compiler but giving wrong answer in codeforces compiler
question:http://codeforces.com/problemset/problem/676/C mysubbmission:http://codeforces.com/contest/676/submission/20293649 In the first test case my compiler is giving output 4 where as codeforces is giving output as -1.

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

| Write comment?
»
8 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Here's your submission passing test 1 : http://codeforces.com/contest/676/submission/20295674

Don't use scanf along with fast I/O for cin.