sajidhasan2021's blog

By sajidhasan2021, history, 4 years ago, In English

I was solving Div.2 114A. I have used the log function to solve this problem and repeatedly get wa for the 9th test case. I got the correct answer for that test case in codeblocks and idone but I got wrong answer for that test case in codeforces. My question is does the log function not always give the correct value or does the answer vary from compiler to compiler? Submitted code : https://codeforces.net/contest/114/submission/85798651

Thank you.

Full text and comments »

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

By sajidhasan2021, history, 4 years ago, In English

I was solving Div.2 234B and getting RTE but the code is running fine on my IDE and also in Ideone. can someone help me out here? submitted code: https://codeforces.net/contest/234/submission/89567263 thank you

Full text and comments »

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

By sajidhasan2021, history, 4 years ago, In English

I was solving Div.2 116B using GNU C++11 and getting WA for test case 41. After changing the language to GNU C++17, my code was accepted.My question is why I got WA even though there was nothing wrong with the code. I also checked with C ++ 4.3.2 on ideone and got the correct answer for that test case.A very simple code having only loops and arrays..... what makes it WA in C++11.

WA : GNU C++11 submission

Accepted : GNU C++17 submission

Thank you.

Full text and comments »

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