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

27 lines
565 B
Groff

// Sample input 2, in Java.
public class todd_and_steven {
public todd_and_steven() {
}
public static long GetToddLength() {
return 1L;
}
public static long GetStevenLength() {
return 1L;
}
public static long GetToddValue(long i) {
switch ((int)i) {
case 0: return 101L;
default: throw new IllegalArgumentException("Invalid argument");
}
}
public static long GetStevenValue(long i) {
switch ((int)i) {
case 0: return 100L;
default: throw new IllegalArgumentException("Invalid argument");
}
}
}