Home
MINJUN
Cancel

BOJ. Water taxi (2836)

[Link] https://www.acmicpc.net/problem/2836 import java.util.*; import java.io.*; public class Main { static BufferedReader br; static StringBuilder sb = new StringBuilder(); static int[] se...

BOJ. Northwesterly Wind (5419)

[Link] https://www.acmicpc.net/problem/5419 import java.util.*; import java.io.*; public class Main { static BufferedReader br; static StringBuilder sb = new StringBuilder(); static int[] se...

BOJ. line Drawing (2170)

[Link] https://www.acmicpc.net/problem/2170 import java.util.*; import java.io.*; public class Main { static BufferedReader br; // static StringBuilder sb = new StringBuilder(); public stati...

BOJ. ATM (4013)

[Link] https://www.acmicpc.net/problem/4013 Step 1. get SCC Step 2. Method 1 Tarjan is DFS SCC => update dp from biggest idx to lower for(int i = groupIdx - 1; i >= 0; i--) { for(int ...

Codeforces Round 771 (Div. 2) D. Big Brush

[Link] https://codeforces.com/contest/1638/problem/D import java.util.*; import java.io.*; public class Main { static BufferedReader br; static StringBuilder sb = new StringBuilder(); static...

Codeforces Round 771 (Div. 2) C. Inversion Graph

[Link] https://codeforces.com/contest/1638/problem/C import java.util.*; import java.io.*; public class Main { static BufferedReader br; static StringBuilder sb = new StringBuilder(); public...

Codeforces Round 771 (Div. 2) B. Odd Swap Sort

[Link] https://codeforces.com/contest/1638/problem/B import java.util.*; import java.io.*; public class Main { static BufferedReader br; static StringBuilder sb = new StringBuilder(); public...

Codeforces Round 771 (Div. 2) A. Reverse

[Link] https://codeforces.com/contest/1638/problem/A import java.util.*; import java.io.*; public class Main { static BufferedReader br; static StringBuilder sb = new StringBuilder(); public...

BOJ. 2-SAT - 4 (11281)

[Link] https://www.acmicpc.net/problem/11281 Tarjan is DFS import java.util.*; import java.io.*; public class Main { static BufferedReader br; static StringBuilder sb = new StringBuilder()...

AtCoder. Regular Contest 135 C XOR to All

[Link] https://AtCoder.jp/contests/arc135/tasks/arc135_c IDEA import java.util.*; import java.io.*; public class Main { static BufferedReader br; static StringBuilder sb = new StringBuilder...