摘要: Codeforces Round 873 (Div. 2) A - Divisible Array 思路:每个数为i时都为i的倍数,前n个数和为Sn=n*(n+1)/2,可知每个数再乘n,Sn必为n的倍数 #include<bits/stdc++.h> using namespace std; ty 阅读全文
posted @ 2023-05-16 12:55 bible_w 阅读(40) 评论(0) 推荐(0) 编辑