1129排序问题(2)(sort排序) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;bool compare(int p1, int p2)…… 题解列表 2024年06月13日 0 点赞 0 评论 251 浏览 评分:0.0
1130数数字(for循环遍历) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ char s[100]; cin >…… 题解列表 2024年06月13日 0 点赞 0 评论 379 浏览 评分:0.0
1131斐波那契数列(动态规划) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[50]; arr[1] = 1; arr[2] = 1…… 题解列表 2024年06月13日 0 点赞 0 评论 325 浏览 评分:0.0
编写题解 1739: 成绩排序 -java比较器 摘要:解题思路: 利用集合的sort进行排序(重写比较器)注意事项: 第一排序条件为成绩 其次姓名 最后年龄参考代码:import java.util.ArrayList; import java.uti…… 题解列表 2024年06月14日 0 点赞 0 评论 234 浏览 评分:0.0
编写题解 2834: 与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int n,m,s=0; cin>>n;int a[n];fo…… 题解列表 2024年06月14日 0 点赞 0 评论 413 浏览 评分:0.0
编写题解 1041: [编程入门]宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define M(a,b) (a>b)?a:b float sss(float x,float y,float z){ …… 题解列表 2024年06月14日 0 点赞 0 评论 374 浏览 评分:0.0
无聊的星期六 摘要:int Sn = 0; long long sum = 0,tmp=1; scanf("%d", &Sn); for (int i = 1; i <= Sn; i++) { tmp *= …… 题解列表 2024年06月15日 0 点赞 0 评论 511 浏览 评分:0.0
不用ASCII码(Java代码) 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2024年06月15日 0 点赞 0 评论 168 浏览 评分:0.0
1004: [递归]母牛的故事c语言 摘要:代码解释:这里作者用了五维数组解题思路:有1岁牛2岁牛3岁牛4岁牛分别统计他们的数量,4岁牛的数量=上一年的3岁牛+当年4岁牛的数量。3岁牛的数量=上一年的2岁牛的数量。2岁牛的数量=上一年的1岁牛的…… 题解列表 2024年06月15日 0 点赞 0 评论 165 浏览 评分:0.0
题解 1852: 求1+2+3+...+n的值(test1) 摘要:**#include using namespace std; int main() { long long n,sum=0; cin>>n; for(int …… 题解列表 2024年06月16日 0 点赞 0 评论 137 浏览 评分:0.0