RyuzakiLight's blog

By RyuzakiLight, history, 9 months ago, In English

I have been using this template for a while. But the problem is when I try to accept strings. In codechef it works fine but for some reason it does not work in codeforces. It works fine locally though. Any thoughts on how to fix this

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:55) at java.base/jdk.internal.util.Preconditions$1.apply(Preconditions.java:52) at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:213) at java.base/jdk.internal.util.Preconditions$4.apply(Preconditions.java:210) at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:98)

Love from White ;)

Full text and comments »

  • Vote: I like it
  • -1
  • Vote: I do not like it