编写题解 1000: [竞赛入门]简单的a+b 摘要:#include<stdio.h>int main(){ int a,b; while(~scanf("%d%d", &a, &b))printf("%d\n",a+b); retu…… 题解列表 2022年05月07日 0 点赞 0 评论 310 浏览 评分:0.0
小白数组思想c语言代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define N 100void oppo(char sz1[],char sz2[]){ int m,n,i; m=strlen(…… 题解列表 2022年05月07日 0 点赞 0 评论 297 浏览 评分:0.0
[编程入门]筛选N以内的素数 摘要:解题思路:这题十分简单,考的知识点是素数筛选表。1、设一个bool函数,来判断是否为素数。 bool cheack(int a){ for(int i=2;i*i<=a;i++) …… 题解列表 2022年05月07日 0 点赞 0 评论 358 浏览 评分:9.9
用数组与for循环解题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define N 100void oppo(char sz[],int m){ int j; for(j=m-1;j>=0;j--)…… 题解列表 2022年05月07日 0 点赞 0 评论 330 浏览 评分:0.0
利用for循环解题 超简单的小白思想c语言代码 摘要:解题思路:注意事项:参考代码:#includevoid susu(int i){ int j,k; for(j=2;j<i;j++){ if(i%j==0){ printf("not prime…… 题解列表 2022年05月07日 0 点赞 0 评论 448 浏览 评分:0.0
不用input,用标准输入来输入 摘要:解题思路:一个数%10获得个位上的数,一个数//10获得除了个位上的数注意事项:参考代码:import syswhile True: s_in=sys.stdin contenir=s_i…… 题解列表 2022年05月07日 0 点赞 0 评论 565 浏览 评分:0.0
姓名排序 题解(超简单的) 摘要:解题思路:这题就用字符串数组排序就欧了。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n,m;string s[1005];in…… 题解列表 2022年05月07日 0 点赞 0 评论 581 浏览 评分:0.0
字符排序 题解(c++很简单的,保证不吃亏!) 摘要:解题思路:这题很简单,直接用sort排序完事!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n;char a[1005];str…… 题解列表 2022年05月07日 0 点赞 0 评论 377 浏览 评分:0.0
成绩排序 题解 摘要:解题思路:这题就是结构体排序,先是成绩,再是姓名,但我们还要考虑年龄。呵呵,这是个坑。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;in…… 题解列表 2022年05月07日 0 点赞 0 评论 330 浏览 评分:0.0
排序 题解(c++)(sort) 摘要:解题思路:直接用sort排序。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n,a[1005];int main(){ w…… 题解列表 2022年05月07日 0 点赞 0 评论 481 浏览 评分:6.0