798c专题

Codeforces 798C Mike and gcd problem (贪心)

C. Mike and gcd problem time limit per test 2 seconds memory limit per test 256 megabytes Mike has a sequence A = [a1, a2, ..., an] of length n. He considers the sequence B = [b1, b2, .