Title |
User |
Message |
Date Posted |
Re: I don't know why my code does not work |
magicalsoup |
It’s too slow, duh! And the code provided from this question is too slow, you should understand this question before just asking why your code does not work |
Jul 23, 2018 - 6:25:10 pm UTC |
I don't know why my code does not work |
Kevin123 |
|
Jul 23, 2018 - 5:02:22 pm UTC |
Re: Hold On |
jargon |
It's equivalent to the C++ code, except of course that it handles i/o differently. |
Jul 19, 2018 - 4:49:34 am UTC |
Re: Hold On |
Kevin123 |
Can I get a Java equivalent? |
Jul 18, 2018 - 8:34:30 pm UTC |
Re: Hold On |
jargon |
The good thing is that this reads very easily as near-direct English. Here are equivalents in C++ and Python. // C++ int N; cin >> N; int counter = 0; for (int i = N - 1; i >= 1; i--) { counter ... |
Mar 11, 2018 - 7:19:55 pm UTC |
Hold On |
Kevin123 |
If you don't have an understanding of Pascal, how would you do this? I think I understand, but what about the rest? |
Mar 10, 2018 - 10:43:05 pm UTC |