Skip to content

Commit 8686462

Browse files
authored
[BOJ] 13234 George Boole (B2)
1 parent ceb5b33 commit 8686462

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

정건우/6주차/260206.java

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//https://www.acmicpc.net/problem/13234
2+
import java.io.BufferedReader;
3+
import java.io.IOException;
4+
import java.io.InputStreamReader;
5+
import java.util.StringTokenizer;
6+
7+
public class BOJ_B2_13234_GeorgeBoole {
8+
public static void main(String[] args) throws IOException {
9+
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
10+
StringTokenizer st = new StringTokenizer(br.readLine());
11+
12+
boolean v1 = st.nextToken().equals("true");
13+
String option = st.nextToken();
14+
boolean v2 = st.nextToken().equals("true");
15+
16+
if(option.equals("AND")) {
17+
System.out.println(v1 && v2);
18+
} else {
19+
System.out.println(v1 || v2);
20+
}
21+
22+
}
23+
}

0 commit comments

Comments
 (0)