Skip to content

Commit

Permalink
CT_329
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-Good committed Dec 7, 2024
1 parent 74ebebf commit cd2f08b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions BOJ/Java/src/B4/Boj_11121_Communication_Channels.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package B4;

import java.util.Scanner;

public class Boj_11121_Communication_Channels {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);

// 입력받는 T(전송 개수)
int T = sc.nextInt();
sc.nextLine(); // 버퍼 비우기

for (int i = 0; i < T; i++) {
// 각 전송의 입력과 출력 읽기
String transmission = sc.nextLine();
String[] parts = transmission.split(" ");
String input = parts[0];
String output = parts[1];

// 입력과 출력 비교
if (input.equals(output)) {
System.out.println("OK");
} else {
System.out.println("ERROR");
}
}
}
}

0 comments on commit cd2f08b

Please sign in to comment.