UPC Contest2822 - 2021个人训练赛第12场
《2022年5月22日仅AC一题》
问题 C: Coprime Set
时间限制:1Sec内存限制:128 MBSpecial Judge
题目描述
Given is a positive integer N. Print an integer sequence A=(A1,A2,…,AN) satisfying all of the following:
1≤Ai≤10000;
Ai≠Aj and gcd(Ai,Aj)>1 for i≠j;
gcd(A1,A2,…,AN)...
原创
2021-05-22 22:07:26 ·
350 阅读 ·
0 评论