https://codeforces.com/contest/1506/problem/E시간 2초, 메모리 256MBinput :t (1 ≤ t ≤ 104)n(1 ≤ n ≤ 2 \* 105)q1, q2, …, qn (1 ≤ qi ≤ n).output : For eac
https://codeforces.com/contest/1506/problem/D시간 2초, 메모리 256MBinput :t (1 ≤ t ≤ 104)n(1 ≤ n ≤ 2 \* 105)a1, a2, …, an (1 ≤ ai ≤ 109).output : For e
https://codeforces.com/contest/1506/problem/C시간 2초, 메모리 256MBinput :t (1 ≤ t ≤ 100)string a (1 ≤ |a| ≤ 20)string b (1 ≤ |b| ≤ 20)output : For eac
https://codeforces.com/contest/1506/problem/B시간 2초, 메모리 256MBinput :t (1 ≤ t ≤ 500)n k(1 ≤ k ≤ n ≤ 50)string s of length noutput : For each test
https://codeforces.com/contest/1506/problem/A시간 2초, 메모리 256MBinput :t (1 ≤ t ≤ 104)n m x(1 ≤ n, k ≤ 106)(1 ≤ x ≤ n ⋅ m)output : For each test cas