Skip to content

Commit

Permalink
CT_300
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-Good authored Nov 5, 2024
1 parent 2a67e33 commit 2b10d17
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions BOJ/Java/src/B4/Boj_10039_평균_점수
Original file line number Diff line number Diff line change
@@ -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();
}
}

0 comments on commit 2b10d17

Please sign in to comment.