利用sort进行结构体排序(简单易上手) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef struct Geade{ int id,y,s,e,s…… 题解列表 2022年11月03日 0 点赞 0 评论 278 浏览 评分:0.0
结构体sort排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef struct M{ string s; float …… 题解列表 2022年11月03日 0 点赞 0 评论 329 浏览 评分:0.0
题解 2917: 奇数单增序列 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int b[501]={0},a[252]={0…… 题解列表 2022年11月03日 0 点赞 0 评论 313 浏览 评分:0.0
自定义函数之字符串反转 摘要:#include<stdio.h>#include<string.h>void fun(char a[200],char b[200]){ int i,k; k=strlen(a); …… 题解列表 2022年11月03日 0 点赞 0 评论 258 浏览 评分:0.0
1022: [编程入门]筛选N以内的素数(C语言) 摘要:题目:用简单素数筛选法求N以内的素数。解题思路:①使用两次for循环,n从2循环到N,每找到一个素数就输出,这是第一层循环;②在进入第二层循环之前,定义b并初始化为0,在循环后判断b是否还为0,为0则…… 题解列表 2022年11月03日 0 点赞 0 评论 497 浏览 评分:0.0
数字逆序输出JAVA 摘要:解题思路:注意事项:参考代码:import java.text.DecimalFormat;import java.util.Arrays;import java.util.Scanner;publi…… 题解列表 2022年11月03日 0 点赞 0 评论 436 浏览 评分:0.0
在VScode上运行结果完全正确,在这里只有69分,有大神解释一下吗? 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i,j; int arr[n][n…… 题解列表 2022年11月03日 0 点赞 0 评论 366 浏览 评分:0.0
敲简单C语言代码!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100000]={0}; long long b,i; a[99999]=1; …… 题解列表 2022年11月03日 0 点赞 0 评论 403 浏览 评分:0.0
1072-嵌套循环求解 摘要:解题思路:#创建两个变量分别记录空瓶子数和兑换汽水数 #使用循环体实现对多个数据的接收 #注意计算每次进行兑换后剩余空瓶子数注意事项:sum每次输出后要重新归零n=2时便只能再兑换最后一瓶参考代码…… 题解列表 2022年11月03日 0 点赞 0 评论 267 浏览 评分:0.0
A+B for Input-Output Practice (V)(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100],n,i,j=0,sum,m; scanf("%d",&m); while(…… 题解列表 2022年11月03日 0 点赞 0 评论 294 浏览 评分:0.0