C语言训练-素数问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a,n;int main(){ cin>>n; fo…… 题解列表 2022年05月05日 0 点赞 0 评论 342 浏览 评分:0.0
C语言训练-求素数问题 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[1000005],n;int main(){ cin>…… 题解列表 2022年05月05日 0 点赞 0 评论 338 浏览 评分: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 评论 477 浏览 评分:0.0
蓝桥杯算法提高VIP-质数的后代 摘要: import java.util.Scanner; public class Main { public static void main(String[] args) { S…… 题解列表 2022年05月05日 0 点赞 0 评论 323 浏览 评分:0.0
分类讨论解最少刷题数(java) 摘要:## 注意事项 会出现重复的数,比如1 1 1 1 3 ## 解题思路 每个人最少刷多少题,才能使刷题比他多的人不超过比他少的人。 直接排好序,取中间的数val为标准 统计出刷题…… 题解列表 2022年05月05日 0 点赞 0 评论 1631 浏览 评分:9.2
编写题解 1009: [编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:a=input('') print(len(a)) for i in a: print(i,end=' ') print(…… 题解列表 2022年05月05日 0 点赞 0 评论 299 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:a=[] b=[] c=[] d=[] s=input('') for i in s: if (i >='a' and…… 题解列表 2022年05月05日 0 点赞 0 评论 430 浏览 评分:0.0
虽是简单题,但注意两个陷阱 摘要:解题思路:没什么思路,保存最小值和最大值坐标,调换就可以,很简单的一道题注意事项:问题在这里:如果最小值是最后一个坐标,最大值是第一个坐标,那么会相同的坐标交换两次,也就是没有交换,所以这里可以判段一…… 题解列表 2022年05月05日 0 点赞 0 评论 433 浏览 评分:9.9
字符串的修改 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#define max(x,y) x>y?x:yint fun(char s1[], char s2…… 题解列表 2022年05月05日 0 点赞 0 评论 370 浏览 评分:0.0
循环题要找得到flag位置 摘要:解题思路:报数,报到3就排除,所以创建一个n的boolean类型数组,计入count,如果count%3==0,那么就是报到3的那个人注意事项:好简单好简单,我不想说啦!!!可能要注意的一个地方就是,…… 题解列表 2022年05月05日 0 点赞 1 评论 402 浏览 评分:9.9