-
Notifications
You must be signed in to change notification settings - Fork 2
/
Main.java
38 lines (29 loc) · 973 Bytes
/
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
package io.github.tahanima.uva._11547;
import java.util.Scanner;
public class Main {
/**
* @param number denotes an integer array containing the skill testing questions
* @return an integer array containing the answers
*/
public static int[] solve(int[] number) {
// Implement this method
return new int[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[] number = new int[testCases];
for (int cases = 0; cases < testCases; cases++) {
number[cases] = scanner.nextInt();
}
int[] answer = solve(number);
for (int n: answer) {
stringBuilder.append(String.format("%d%n", n));
}
System.out.print(stringBuilder);
}
}