-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNo_10250.java
More file actions
22 lines (21 loc) · 813 Bytes
/
Copy pathNo_10250.java
File metadata and controls
22 lines (21 loc) · 813 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import java.util.Scanner;
public class No_10250 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int inputNumber = sc.nextInt();
sc.nextLine();
String[] inputArray = new String[inputNumber];
for (int i = 0; i < inputNumber; i++) {
inputArray[i] = sc.nextLine();
System.out.println( i + ": " + inputArray[i]);
}
// 여기까지 받음.
for (int j = 0; j < inputArray.length; j++) {
System.out.println(inputArray[j].split(" ").length+ "!!!");
int ho = Integer.parseInt(inputArray[j].split(" ")[2]) / Integer.parseInt(inputArray[j].split(" ")[0]);
int dong = Integer.parseInt(inputArray[j].split(" ")[2]) % Integer.parseInt(inputArray[j].split(" ")[0]);
String room = String.valueOf(ho) + String.valueOf(dong);
System.out.println(room);
}
}
}