MehemmedSettarli's blog

By MehemmedSettarli, history, 5 days 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

»
5 days 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);
  • »
    »
    5 days ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I used %d,%lld,cin,cout all of them but still false

    • »
      »
      »
      5 days ago, # ^ |
      Rev. 2   Vote: I like it 0 Vote: I do not like it

      Are you sure? Because I copied your code, changed %d to %lld and submitted. It was accepted.

      You can check the submission here.

      • »
        »
        »
        »
        5 days ago, # ^ |
        Rev. 2   Vote: I like it +3 Vote: I do not like it

        you are right bro my bad