Codeforces Round #473 (Div. 2) D. Mahmoud and Ehab and another array construction task【素因数分解】【构造】
题目链接:https://codeforc.es/problemset/problem/959/D题目大意:给定一个序列aaa,要你找到一个大于等于原序列的字典序最小的新序列bbb,使其满足:bi>=2b_i>=2bi>=2,且1<=i,j<=n,gcd(bi,bj)=11<=i,j<=n,gcd(b_i...
原创
2019-09-03 12:42:14 ·
82 阅读 ·
0 评论