codeforces round #659 (div. 2) f. polycarp and hay

7
K=30 5 11 5 1 5 5 1 10 9 1 6 6 5 1 6 1

Upload: pekempey

Post on 15-Apr-2017

300 views

Category:

Education


0 download

TRANSCRIPT

Page 1: Codeforces Round #659 (Div. 2) F. Polycarp and Hay

K=30

5 11 5 1

5 5 1 10

9 1 6 6

5 1 6 1

Page 2: Codeforces Round #659 (Div. 2) F. Polycarp and Hay

K=30

5 11 5 1

5 5 1 10

9 1 6 6

5 1 6 1

11 30 NGは の約数ではないので

Page 3: Codeforces Round #659 (Div. 2) F. Polycarp and Hay

K=30

5 11 5 1

5 5 1 10

9 1 6 6

5 1 6 1

10 30 は の約数だが

NG要素数が足りないので

Page 4: Codeforces Round #659 (Div. 2) F. Polycarp and Hay

K=30

5 11 5 1

5 5 1 10

9 1 6 6

5 1 6 1

9 30 NGは の約数ではないので

Page 5: Codeforces Round #659 (Div. 2) F. Polycarp and Hay

K=30

5 11 5 1

5 5 1 10

9 1 6 6

5 1 6 1

6 30 は の約数だが

NG要素数が足りないので

Page 6: Codeforces Round #659 (Div. 2) F. Polycarp and Hay

K=30

5 11 5 1

5 5 1 10

9 1 6 6

5 1 6 1

5 30 は の約数で

OK要素数も足りているので

Page 7: Codeforces Round #659 (Div. 2) F. Polycarp and Hay

K=30

5 5 5 0

5 0 0 0

5 0 0 0

5 0 0 0

構築