My code ran in my computer in Netbeans java even for large numbers.
But on submission it says "/sources/Main.java:14: class spoj_54 is public, should be declared in a file named spoj_54.java
public class spoj_54 {
^
1 error"
Can anyone please tell me how to declare a class in a .java file.
I tried this for 2 hours but to no use:(