MehemmedSettarli's blog

By MehemmedSettarli, history, 7 weeks ago, In English

Hi I have problem in codeforces https://codeforces.net/contest/2044/submission/296743549 https://codeforces.net/contest/2044/problem/E if you run this in c++ compiler test case is true but in codeforces it is false in codeforces it gives me 0 0 0 0 0 and I do not know why I submitted it 4 times and get same result wrong answer in test case 1 Please loot at my code and solve this problem

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

»
7 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

You are using wrong format specifier. Use '%lld' instead of '%d'

ll k,l1,r1,l2,r2;
    scanf("%d %d %d %d %d", &k, &l1, &r1, &l2, &r2);
printf("%d\n", cvb);