分类讨论解最少刷题数(java) 摘要:## 注意事项 会出现重复的数,比如1 1 1 1 3 ## 解题思路 每个人最少刷多少题,才能使刷题比他多的人不超过比他少的人。 直接排好序,取中间的数val为标准 统计出刷题…… 题解列表 2022年05月05日 0 点赞 0 评论 1600 浏览 评分:9.2
蓝桥杯算法提高VIP-质数的后代 摘要: import java.util.Scanner; public class Main { public static void main(String[] args) { S…… 题解列表 2022年05月05日 0 点赞 0 评论 292 浏览 评分:0.0
C语言训练-计算1~N之间所有奇数之和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a,n;int main(){ cin>>n; fo…… 题解列表 2022年05月05日 0 点赞 0 评论 458 浏览 评分:0.0
C语言训练-求素数问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[1000005],n;int main(){ cin>…… 题解列表 2022年05月05日 0 点赞 0 评论 321 浏览 评分:0.0
C语言训练-素数问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a,n;int main(){ cin>>n; fo…… 题解列表 2022年05月05日 0 点赞 0 评论 309 浏览 评分:0.0
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main() { vector<int> ans; int n,…… 题解列表 2022年05月05日 0 点赞 0 评论 605 浏览 评分:0.0
C语言训练-求1+2!+3!+...+N!的和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[100005],n,t=1;int main(){ c…… 题解列表 2022年05月05日 0 点赞 0 评论 337 浏览 评分:0.0
C语言训练-最大数问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100005],n;int main(){ for(;;) …… 题解列表 2022年05月05日 0 点赞 0 评论 301 浏览 评分:0.0
C语言训练-斐波纳契数列 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a=1,b=1,c,n;int main(){ cin>>n; …… 题解列表 2022年05月05日 0 点赞 0 评论 403 浏览 评分:0.0
C语言训练-"水仙花数"问题2 摘要:解题思路:把四个数算出来直接输出注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c,d;int main(){ cout…… 题解列表 2022年05月05日 0 点赞 0 评论 334 浏览 评分:0.0