diff --git a/boj/solved/brute_force/2531/Main.java b/boj/solved/brute_force/2531/Main.java new file mode 100644 index 0000000..d618210 --- /dev/null +++ b/boj/solved/brute_force/2531/Main.java @@ -0,0 +1,52 @@ +import java.io.*; +import java.util.*; + +class Main { + static int n, d, k, c; + static int[] cycle; + public static void main(String[] args) throws IOException { + BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + StringTokenizer st = new StringTokenizer(br.readLine()); + n = Integer.parseInt(st.nextToken()); + d = Integer.parseInt(st.nextToken()); + k = Integer.parseInt(st.nextToken()); + c = Integer.parseInt(st.nextToken()); + + cycle = new int[n]; + for(int i = 0;i