when i run the following code on ideone it gave me time exceeded error and on codechef it runs fine!! Since both codechef and ideone use s same sphere online judge i don't understand the difference in such a behaviour
is it because of 'n' use in scanf. Because when i remove it, it runs on ideone but gives me wrong answer asked 21 Feb '13, 10:05 ![]()
|
Hello @vijay40, Actually, IDEone has some restrictions that can be a bit "tighter" than one can expect, i.e., what runs fine here might give some troubles on IDEone.. I recommend you read the IDEone FAQ, in order to have an idea of what is, or is not allowed: I hope this can help you, Bruno answered 21 Feb '13, 21:02 ![]()
|