https://codeforces.net/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 | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
https://codeforces.net/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