Home
MINJUN
Cancel

BOJ. Digital Video Disk (9345)

[Link] https://www.acmicpc.net/problem/9345 import java.util.*; import java.io.*; public class Main { static BufferedReader br; static int max = 0, maxIdx = 0; public static void main(String...

BOJ. Josephus problem(2) (1168)

[Link] https://www.acmicpc.net/problem/1168 import java.util.*; import java.io.*; public class Main { static BufferedReader br; static int[] seg; static int[] orig; public static void main(S...

BOJ. Data Structure (12899)

[Link] https://www.acmicpc.net/problem/12899 import java.util.*; import java.io.*; public class Main { static BufferedReader br; static int[] seg; static int[] orig; static final int N = 200...

BOJ. Police Car (2618)

[Link] https://www.acmicpc.net/problem/2618 import java.util.*; import java.io.*; public class Main { static BufferedReader br; static int max = 0, maxIdx = 0; public static void main(String[...

BOJ. Array and Query (16975)

[Link] https://www.acmicpc.net/problem/16975 import java.util.*; import java.io.*; public class Main { static BufferedReader br; static long[] seg; static int[] orig; public static void main...

AtCoder. ABC 235 E MST + 1

[Link] https://AtCoder.jp/contests/abc235/tasks/abc235_e import java.util.*; import java.io.*; public class Main { static BufferedReader br; static int max = 0, maxIdx = 0; public static void...

AtCoder. ABC 235 C The Kth Time Query

[Link] https://AtCoder.jp/contests/abc235/tasks/abc235_c import java.util.*; import java.io.*; public class Main { static BufferedReader br; static int max = 0, maxIdx = 0; public static void...

AtCoder. ABC 235 B Climbing Takahashi

[Link] https://AtCoder.jp/contests/abc235/tasks/abc235_b import java.util.*; import java.io.*; public class Main { static BufferedReader br; static int max = 0, maxIdx = 0; public static void...

AtCoder. ABC 235 A - Rotate

[Link] https://AtCoder.jp/contests/abc235/tasks/abc235_a import java.util.*; import java.io.*; public class Main { static BufferedReader br; static int max = 0, maxIdx = 0; public static void...

BOJ. Floyd(2) (11780)

[Link] https://www.acmicpc.net/problem/11780 /*Can do more optimization with -- instead of storing middle idx(pass), store next idx -- instead of checking with visit[], init val of cost[][] wi...