Please read the new rule regarding the restriction on the use of AI tools. ×

Error gives in codeforces compiler but in vscode gives answer in same condition

Revision en2, by Codersaurus, 2022-11-23 19:32:20

Hello friends, I'm newbie to codeforces and these problems by using c language.and When I submit my code It always says that "Wrong answer on test 1". But when I run my code on vscode succesfully and it gives correct output in A. Helpful Maths problem. And this is my code. It's little bit lenthy. But it works correctly.I don't why i'm getting that error. This link helps you to go my answer

Tags #greedy, #strings, #sortings, #implementation, #newbie

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Codersaurus 2022-11-23 19:32:20 1018
en1 English Codersaurus 2022-11-23 19:14:24 1554 Initial revision (published)