1022: [编程入门]筛选N以内的素数 摘要:解题思路:素数指在一个大于1的自然数中,除了1和此整数自身外,没法被其他自然数整除的数参考代码:#includeint main(){ int n,flag=1; scanf("%d",&…… 题解列表 2021年12月16日 0 点赞 0 评论 430 浏览 评分:9.9
1009: [编程入门]数字的处理与判断 摘要:参考代码:#include <stdio.h>#include <string.h>int main(){ char str[5]; scanf("%s",str); int len…… 题解列表 2021年12月16日 0 点赞 0 评论 381 浏览 评分:0.0
字符串解题,代码简短简单 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string str; getline(cin,…… 题解列表 2021年12月16日 0 点赞 0 评论 728 浏览 评分:0.0
简单方法计算最大公约数和最小公倍数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a=0,b=0,c=0; cin>>a>…… 题解列表 2021年12月16日 0 点赞 0 评论 559 浏览 评分:9.9
不需要数组,简单运算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a=0 , n=0 , m=0; flo…… 题解列表 2021年12月16日 0 点赞 0 评论 354 浏览 评分:0.0
一行代码解决,有帮助给个5星 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ for(int i=1;i<=9;i++){ …… 题解列表 2021年12月16日 0 点赞 0 评论 398 浏览 评分:0.0
数据结构-简单选择排序(这道题很简单的了) 摘要:解题思路:注意事项: 输出格式的要求,注意一下就行。参考代码:#include<stdio.h>int main(){ int n,k,temp,i,j; int a[1000];//防止数组越界 ,…… 题解列表 2021年12月16日 0 点赞 0 评论 865 浏览 评分:0.0
1676: 数据结构-链表的基本操作(C语言描述) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> #include<string.h> //定义结点类型 typedef struct …… 题解列表 2021年12月16日 0 点赞 0 评论 592 浏览 评分:9.9
c语言编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:如果符合在字母范围内,就加一; 如果符合在数字范围内,相应加一; 如果是空格,相应加一; 如果以上都不符合,相应加一; 如何实现加一(即计数)呢,我们…… 题解列表 2021年12月16日 0 点赞 1 评论 516 浏览 评分:6.0
C语言训练-求车速 摘要:解题思路:注意事项:参考代码:i = 95859for n in range(i+1,i*2): if str(n)[:3]==str(n)[-1]+str(n)[-2]+str(n)[-3]:…… 题解列表 2021年12月16日 0 点赞 0 评论 443 浏览 评分:0.0