Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

Getting Different answers

Revision en2, by lucky1740, 2018-10-27 09:52:34

I am getting Different answers on my PC(g++ (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609 compiler) and the compilers on CodeForces such as G++ 11,G++ 14, G++ 17 for the Problem 1060B. The output on MY PC is 91 for input (10000000000) and the output on G++ 17,G++ 14, G++ 11 is 82 for the same input. I am Attaching two screenshots . First One is of MY PC and the other is of G++ 17 compiler on CodeForces. Should I use a differnet compiler for c++ programs on CodeForces ? Please help me through this. Link for first image: /predownloaded/5a/93/5a93c962042422acacd9e651a14bed48d41db16b.jpg Link for second image: /predownloaded/4f/e1/4fe145ce573ce4d1950208ad3c9f43a626b190bb.jpg

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English lucky1740 2018-10-27 09:56:00 120
en2 English lucky1740 2018-10-27 09:52:34 177
en1 English lucky1740 2018-10-27 09:50:25 542 Initial revision (published)