✅ code works fine on my pc but give runtime error on codeforces
11 Replies
my submission: https://codeforces.com/contest/231/submission/288376399
did you try to replicate the input?
because that input breaks your code
problem doesnt tell if the input is a string or a int
im still trying to figure it out
wdym?
each line is a line input into the console
nvm found a fix
do you know anyway to make it format like this
did chatgpt puke that out?
otherwise it will look like this still works but looks ugly
no i found a random question on a website
code should be readable and this is more readable than cramming everything into one line like i asume you want to do
also prefer tryparse instead of convert
i didnt knew what was int.Parse before thats why i used convert i saw that on the website i mentioned above
i will use parse from now on lol
how do i mark this thread as solved @ACiDCA7
/close