git reimport
This commit is contained in:
19
dcj/tasks/weird_editor/weird_editor1.java
Normal file
19
dcj/tasks/weird_editor/weird_editor1.java
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user