-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMain.java
39 lines (30 loc) · 1.01 KB
/
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package io.github.tahanima.uva._11172;
import java.util.Scanner;
public class Main {
/**
* @param values denotes an integer array containing the numbers to evaluate
* @return a character array containing the answers
*/
public static char[] solve(int[][] values) {
// Implement this method
return new char[0];
}
/**
* Takes care of the problem's input and output.
*/
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
StringBuilder stringBuilder = new StringBuilder();
int testCases = scanner.nextInt();
int[][] values = new int[testCases][2];
for (int cases = 0; cases < testCases; cases++) {
values[cases][0] = scanner.nextInt();
values[cases][1] = scanner.nextInt();
}
char[] answer = solve(values);
for (char ch: answer) {
stringBuilder.append(String.format("%c%n", ch));
}
System.out.print(stringBuilder);
}
}