fmfkfd's blog

By fmfkfd, history, 10 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.me/problemset/problem/676/C mysubbmission:http://codeforces.me/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?
»
10 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

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

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