目录
java
import java.io.BufferedInputStream;
import java.util.Scanner;
public class Main {
public static boolean IsPeak(int p, int P, int res) {
if ((res - p) % P == 0) {
return true;
}
else {
return false;
}
}
public static void main(String[] args) {
Scanner s = new Scanner(new BufferedInputStream(System.in));
int count = 1;
while (s.hasNextInt()) {
System.out.print("Case "+count+": ");
count++;
boolean flag = true;
int P = s.nextInt();
int I = s.nextInt();