判决素数个数(自定义函数) 摘要:解题思路:在主函数里调用自定义的函数参考代码:#include<iostream>using namespace std;void pss(int x,int y){ int s = 0; int i…… 题解列表 2023年10月28日 0 点赞 0 评论 408 浏览 评分:9.9
2853: 字符替换 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[100000],a,b;int main(){ cin>>s;…… 题解列表 2023年10月28日 0 点赞 0 评论 260 浏览 评分:0.0
阶乘求和记录,第一次用int没过,数据太大,改用long long类型 摘要:解题思路:遍历求阶乘注意事项:参考代码:#include<stdio.h> int main() { int m,i,j; long long sum=0; scan…… 题解列表 2023年10月28日 0 点赞 0 评论 284 浏览 评分:0.0
2846: 统计数字字符个数 摘要:解题思路:注意事项:要输入字符0到字符9参考代码:#include <bits/stdc++.h>using namespace std;char s[100000];int main(){ i…… 题解列表 2023年10月28日 0 点赞 0 评论 306 浏览 评分:0.0
2236: 蓝桥杯算法训练-大小写转换 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[100000];int main(){ cin>>s; …… 题解列表 2023年10月28日 0 点赞 0 评论 294 浏览 评分:0.0
[编程入门]三个数最大值(数组) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i = 0; int s[3]; for (i = 0; i < 3; i++…… 题解列表 2023年10月28日 0 点赞 0 评论 378 浏览 评分:9.9
第十三次作业2题 摘要:解题思路:利用桶排序思想计数注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int tong[100000];int main(){ …… 题解列表 2023年10月28日 0 点赞 0 评论 272 浏览 评分:0.0
[编程入门]密码破译 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char c1,c2,c3,c4,c5; scanf("%c%c%c%c%c",&c1,&c2,&c…… 题解列表 2023年10月28日 0 点赞 0 评论 333 浏览 评分:0.0
在原数组中搜索能互质的数---在剩下的数中搜索能互质的数 摘要: n=int(input()) b=list(map(int,input().split())) def gcd(a,b): if a%b == 0: return …… 题解列表 2023年10月28日 0 点赞 0 评论 318 浏览 评分:0.0
水仙花数判断C代码记录 摘要:解题思路:注意事项:参考代码:本人代码#include<stdio.h> int main() { int h,d,u; for(h=1;h<10;h++) …… 题解列表 2023年10月28日 0 点赞 0 评论 309 浏览 评分:0.0