git reimport
This commit is contained in:
23
dcj/other/pancakes0.java
Normal file
23
dcj/other/pancakes0.java
Normal file
@@ -0,0 +1,23 @@
|
||||
// Sample input 1, in Java.
|
||||
public class pancakes0 {
|
||||
public pancakes0() {
|
||||
}
|
||||
|
||||
public static long GetStackSize() {
|
||||
return 4L;
|
||||
}
|
||||
|
||||
public static long GetNumDiners() {
|
||||
return 4L;
|
||||
}
|
||||
|
||||
public static long GetStackItem(long i) {
|
||||
switch ((int)i) {
|
||||
case 0: return 3L;
|
||||
case 1: return 1L;
|
||||
case 2: return 2L;
|
||||
case 3: return 0L;
|
||||
default: throw new IllegalArgumentException("Invalid argument");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user