+ 1
Need help with code!
Hi, Im doing a small code for school and wanted to ask if the community could help me improve my coding. I am not very far with coding, so if somebody could show me a code that can take away the Time limit exedded thing and put numbers next to the results. All help is thanked for. Thanks.
8 Respostas
+ 6
time limit exceeded is a server thing. it can not be bypassed here. you will have to run longer codes on your computer to see the results. Now that I have got that out of the way I will take a look at the code ☺
+ 6
@Um-- yeah not typing that. lol just a turn of phrase. Cause I have a thing about doing others homework for them.
+ 5
To make it as you want it you will need to get the info from the user using cin
here is an example of using cin
int baseNumber;
cin >> baseNumber;
+ 5
->I usually don't do homework.... I guess you are lucky today.
https://code.sololearn.com/co2TpXw7mu53/#cpp
+ 4
so reduce the limit of the loop...remove 1000 or increase the inrement value(change 66 to 100)....
+ 4
y lucky ...@jay
+ 1
Sry. Heres the code https://code.sololearn.com/cRJUVLUclsVv/#cpp
+ 1
It doesn't have errors, it runs well xD