题解列表

筛选

分类讨论解最少刷题数(java)

摘要:## 注意事项 会出现重复的数,比如1 1 1 1 3 ## 解题思路 每个人最少刷多少题,才能使刷题比他多的人不超过比他少的人。 直接排好序,取中间的数val为标准 统计出刷题……

C语言训练-求素数问题

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[1000005],n;int main(){    cin>……

C语言训练-素数问题

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a,n;int main(){    cin>>n;    fo……

C语言训练-最大数问题

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100005],n;int main(){    for(;;)    ……