Answer the question
In order to leave comments, you need to log in
Strange behavior of $_REQUEST in php, what is the reason?
I pass the id parameter, let's say "555", at the very beginning of the script, the line print_r($_REQUEST);
displays id=1
The problem is only on 1 server, on 3 others everything is fine
Answer the question
In order to leave comments, you need to log in
Read carefully what $_REQUEST is, then check what is in $_GET['id'], $_POST['id'], $_COOKIE['id'], look into the config for the request_order and variables_order options.
Thanks for the help, the problem is in the php settings.
The surest way to stop using the id variable (call it ids for example)
I don’t know about other areas, so I only write about ACM ICPC and related (similar) ones like this:
To become cool, you need to solve problems a day for at least 2-3 hours a day.
On all kinds of task aggregator sites like codeforces.ru, opencup.ru, topcoder.com, google codejam, acm.timus.ru and many many others.
Participate in all ongoing online competitions.
Reminds me of the 10,000 hour rule. There is an opinion that people become professionals not because of talent, but by the fact of investing man-hours in their occupation.
However, there are also unique ones, like Gennady Korotkevich (google it, read it).
It is almost impossible to become the best in any field. However, there is a chance.
I didn't get past the ACM ICPC semi-finals because I was too lazy and solved problems a couple of times a month.
Oh, I completely forgot: an experienced coach is important for the championship. In order not to waste time on all sorts of nonsense, and it is more efficient to "swing".
One more thing: I would prefer a discussion with a seasoned Olympiad student of a specific algorithm than reading literature on it. Very important is the speed of writing the algorithm, and easy memorability. Some tricks for its good modification, if the task requires its minor modification. Reading the leader code doesn't hurt either to understand how to write more elegantly.
Many of the simplest algorithms can be written elegantly and quickly, or you can brainstorm for a long time, and then +1 index, or -1. And how much do you need to add? And the condition is <= or <. A lot of nuances.
Also, psychological preparation will not hurt if the coach can. Since, for example, I was wedged three times at important competitions. Twice at the ACM ICPC semi-finals: you sit like a log, you don’t understand anything, you got too excited. And once at VKOSHP.
Then, as soon as the competition ends (the time is over), the excitement subsides immediately and you start looking at the tasks and thinking: What?!?! And I couldn't figure it out?!?!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question