From 2b10d171566cb3658cb9e6a0483b239001e3dc63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EC=88=98=EB=AF=BC?= Date: Tue, 5 Nov 2024 21:36:41 +0900 Subject: [PATCH] CT_300 --- ...\211\352\267\240_\354\240\220\354\210\230" | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 "BOJ/Java/src/B4/Boj_10039_\355\217\211\352\267\240_\354\240\220\354\210\230" diff --git "a/BOJ/Java/src/B4/Boj_10039_\355\217\211\352\267\240_\354\240\220\354\210\230" "b/BOJ/Java/src/B4/Boj_10039_\355\217\211\352\267\240_\354\240\220\354\210\230" new file mode 100644 index 0000000..258308a --- /dev/null +++ "b/BOJ/Java/src/B4/Boj_10039_\355\217\211\352\267\240_\354\240\220\354\210\230" @@ -0,0 +1,25 @@ +package B4; + +import java.io.*; + +public class Boj_6888_Terms_of_Office { + public static void main(String[] args) throws IOException { + BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); + StringBuilder sb = new StringBuilder(); + + int X = Integer.parseInt(br.readLine()); + int Y = Integer.parseInt(br.readLine()); + + sb.append("All positions change in year ").append(X).append('\n'); + + for (int i = X + 1; i <= Y; i++) { + if ((i - X) % 60 == 0) { + sb.append("All positions change in year ").append(i).append('\n'); + } + } + + bw.write(sb.toString()); + bw.flush(); + } +}