We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ceb5b33 commit 8686462Copy full SHA for 8686462
정건우/6주차/260206.java
@@ -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