07-05 02:38
μΌ | μ | ν | μ | λͺ© | κΈ | ν |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- Entity
- 리λ μ€ κΈ°μ΄
- Polymolphism
- literal
- descriptive statistics
- Entity Set
- μλ°
- Operator
- Class
- Unity
- Mac
- λ°±μ€
- Reference Type
- 리λ μ€
- BFS
- 리λ μ€ λ§μ€ν° 1κΈ
- μ λ λμ
- selenium
- Xμλμ°
- systemd
- X.org
- Physical Scheme
- preprocessing
- OOP
- Java
- External Scheme
- python
- Inheritance
- dbms
- Binary Search
Archives
- Today
- Total
Byeol Lo
[Problem1] λμΉμ°¨μ§ν© λ³Έλ¬Έ
Problem
μ μ π₯ λ₯Ό μμλ‘ κ°μ§λ πκ°μ μ§ν© π _1, π _2, π _3, ..., π _π μ΄ μμ λ, λ€μμ λ§μ‘±νλ€.
- μμ°μ π(≥ 3), π_1(< π), π_2(< π) μ λν΄ π _(π_1) κ³Ό π _(π_2) λμΉμ°¨μ§ν© π μ μμλ€μ π _πμ ν¬ν¨λμ§ μλλ€.
- πππ₯ π < πππ ( π _(π_1) ∩ π _(π_2) )
μ΄λ€ νλμ μ§ν©μλ§ μν΄ μλ μμλ€μ μ¬μ μμΌλ‘ μ€λ¦μ°¨μμΌλ‘ 곡백μΌλ‘ ꡬλΆνμ¬ μΆλ ₯νλΌ.
Constraints
1 ≤ π ≤ 1,000,000
1 ≤ | π _π | ≤ 100
μ νμκ°: 1μ΄
Inputs
4
-4 1 3 5 7
0 3 5 7
2 7 5
6 8
1
1 2 3 4
5
11 4 -20 9 -7 -17 3 -10 -8 -5
9 -16 11 -18 -5 -10 -8 3 4 -7
-9 11 -5 3 4 -6
3 9 4 11
6 5 15 7 12 10
Outputs
- -4 0 1 2 6 8
- 1 2 3 4
- -20 -18 -17 -16 -9 -6 5 6 7 10 12 15
Comments