q3

來自:ywsing0
時間:Sat 2019-05-18 22:33:00

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Solution {

public static void main(String[] args) {
new Solution().run(args);
}

void run(String[] args) {
Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
int t = in.nextInt(); // Scanner has functions to read ints, longs,
// strings, chars, etc.
String out;

for (int c = 1; c <= t; c++) {
int m = in.nextInt();
int a0 = in.nextInt();
int b0 = in.nextInt();
List<int[]> list = new ArrayList<>();
out = null;
for (int j = 0; j < m; j++) {
int a = in.nextInt();
int b = in.nextInt();
list.add(new int[] { a - a0, b - b0 });
// else {
// out = "IMPOSSIBLE";
// }
a0 = a;
b0 = b;

if (out != null) {
}
}

// 0 < ac + bj
// -b < ac/j

System.out.println("Case #" + c + ": " + out);
System.out.flush();
}
in.close();
}

}