I can successfully compile my program in net beans, cmd, and eclipse. but i can’t understand why my programs don’t run here in codechef.
I use java as a programming language.
1 Like
Rename your class to Main and it should work.
I am not a java programmer, but I think instead of using Public class dilu
you should use :
Public class Main
After changing that you code ran fine on ideone. But resulted in TLE on codechef, most probably due to slow algorithm.
1 Like
on ideone the name of class have to be Main as far as I know, but here the class don’t need to be Main, but it cannot be puclic, so for example:
class MyClass {
// ...
}
1 Like