Files
java-competitive/dcj/tasks/weird_editor/weird_editor1.java
2019-03-15 13:47:54 +04:00

19 lines
392 B
Java

// Sample input 1, in Java.
public class weird_editor {
public weird_editor() {
}
public static long GetNumberLength() {
return 4L;
}
public static long GetDigit(long i) {
switch ((int)i) {
case 0: return 3L;
case 1: return 0L;
case 2: return 0L;
case 3: return 1L;
default: throw new IllegalArgumentException("Invalid argument");
}
}
}