https://codeforces.me/contest/1185/submission/55779719
I'm getting ILE and i don't know why.
My code doesn't work on this test.
I tested it a lot of times and it works
LGMs and reds pls help :))
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3821 |
3 | Benq | 3736 |
4 | Radewoosh | 3631 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3388 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 164 |
1 | maomao90 | 164 |
3 | Um_nik | 163 |
4 | atcoder_official | 161 |
5 | -is-this-fft- | 158 |
6 | awoo | 157 |
7 | adamant | 156 |
8 | TheScrasse | 154 |
8 | nor | 154 |
10 | Dominater069 | 153 |
https://codeforces.me/contest/1185/submission/55779719
I'm getting ILE and i don't know why.
My code doesn't work on this test.
I tested it a lot of times and it works
LGMs and reds pls help :))
Name |
---|
Honestly I have seen such post from only greys and greens
I believe that he wants an explanation for the Idleness Limit Exceeded verdict on a NON-INTERACTIVE problem, which is highly irregular.
Probably, it is because of undefined behavior in your code. Try to run it with valgrind or similar.
you can also help me sometimes in your free time.
You are not red as gamegame said. gamegame only wants answers from trusted individuals.
The pizza in your pfp has red stuff on it orz
They are pepprroronis.
I realised that my arrays weren't big enough. I resubmitted and it still got the same verdict. Hmm, i thought this would only get runtime error. That's interesting to know.
When I run it locally i also get ILE. The problem seems to be that you made the add function return an int but you don't have a return statement in it and you don't use the return value; changing it to void made it work.
what, scanf also has return value. i think this is not the issue
Well, you have no return statement in the add function. Though on cf it still doesn't work after changing the add function; only locally.
<=greens: 'debug this code' --> negative contribution
blues and purples: 'debug this code' --> actual answers
IGMs: 'debug this code' --> CF admin response :o
change the first line to <= yellows and it is more realistic
What would happen when tourist would say the same. HaHa.
Bjarne Stroustrup will respond.
You're trying to access index 16 when your array is dp[226][16][16][16].
Yes, but i was surprised that this would make the program fail to detect a runtime error. I thought this would always return RTE
"Idleness limit exceeded on pretest 8"
I have never seen a solution have this outcome, ever. What is this ?
owo what's this
If you used Java, you wouldn't have these problems.
There are many things I like about this comment
But if the OP used Java, he would have other problems.
He would get TLE on test #7.
Petr Solves div 1 E with java so he would not if we write it correct.
If you use g++, you can compile with the following options.
It helps you to catch undefined behavior when you test locally.
g++ -fsanitize=undefined a.cpp
Learn more here
Plot twist- a grey guy hacked a red guy's account so that he can ask doubts