题解 1234: 检查一个数是否为质数 摘要:解题思路:循环+判断注意事项:注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>using namespace std;int main(){s…… 题解列表 2024年03月31日 0 点赞 0 评论 446 浏览 评分:4.0
两个for循环 摘要:解题思路:同时存在多个最多字符时要按字母表顺序输出,因此要创建一个26大小的整形数组,再与统计的最大数量max1比较数值相同时输出对应字符。注意事项:整型和字符之间的转换参考代码:#include<b…… 题解列表 2024年04月08日 0 点赞 0 评论 889 浏览 评分:4.0
我来解决1048: [编程入门]自定义函数之字符串拷贝 c语言代码 摘要:下面我会介绍"1048: [编程入门]自定义函数之字符串拷贝"的答案。至少要有一个n和m还有一个数组。然后开始输入(代码如下) scanf("%d",&n); scanf("%s",s…… 题解列表 2024年04月20日 0 点赞 0 评论 597 浏览 评分:4.0
循环入门练习2 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int i,sum=0; for(i=1;i<=1000;i++) { if(i%7…… 题解列表 2024年04月28日 1 点赞 0 评论 685 浏览 评分:4.0
2859: 忽略大小写的字符串比较 摘要:解题思路:注意事项:参考代码:a = input().strip()b = input().strip()c = a.upper()d = b.upper()if c == d: print("…… 题解列表 2024年08月01日 0 点赞 1 评论 655 浏览 评分:4.0
排序(n个数从小到大) [========]#includevoidsort(inta[],intn)//定义一个排序函数sort{inti,j,temp;for(i=0;i 题解列表 2024年08月23日 1 点赞 0 评论 902 浏览 评分:4.0
应该是最简洁了的-最强小队 摘要:解题思路:题意理解错了,以为是从一段区间中选取几个结果是一整段的,几行搞定注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int …… 题解列表 2024年11月18日 1 点赞 0 评论 981 浏览 评分:4.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,sum=0,sum2=0,a[3][3]; for(i=0;i<3;i++) …… 题解列表 2024年11月19日 1 点赞 0 评论 549 浏览 评分:4.0
最复杂的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>long f1(int a){ long y; y=(long)a*a; return y;}long f2(int …… 题解列表 2024年11月22日 0 点赞 0 评论 380 浏览 评分:4.0
破解简单密码 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){ …… 题解列表 2025年04月08日 0 点赞 0 评论 350 浏览 评分:4.0