1046: [编程入门]自定义函数之数字后移【也许是一种新思路】 摘要:#include<iostream> using namespace std; int func(int a[],int n,int m); int main() { int n; c…… 题解列表 2023年01月07日 0 点赞 0 评论 439 浏览 评分:9.9
2833: 金币 摘要:解题思路:分析题目我们可知,第一天,循环一次,获得一个金币;第二第三天,循环两次,每次两个金币;第四五六天,循环三次,每次三个金币……所以,我们需要一个主循环来控制金币个数,而子循环来控制获得金币的次…… 题解列表 2023年01月07日 0 点赞 0 评论 466 浏览 评分:9.9
1009——[编程入门]数字的处理与判断(仿写题解) 摘要: import java.util.Scanner; public class Main { public static void main(String[]…… 题解列表 2023年01月07日 0 点赞 0 评论 433 浏览 评分:0.0
编写题解 1019: [编程入门]自由下落的距离计算 摘要:解题思路:为什么我不给sum给与初值就会报错呢?注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main() …… 题解列表 2023年01月07日 0 点赞 0 评论 303 浏览 评分:0.0
编写题解 1020: [编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;int main() {int N,all=1;cin>>N;for(int i=1;i<N;i+…… 题解列表 2023年01月07日 0 点赞 0 评论 347 浏览 评分:0.0
编写题解 1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main() { int N; cin>>N; fo…… 题解列表 2023年01月07日 0 点赞 0 评论 278 浏览 评分:0.0
C++代码(结构体的运用) 摘要:###### 解题思路: 建立一个结构体,包含三个数据:学号,姓名,成绩。 通过函数input进行数据的输入。 通过函数print进行输出。 ```cpp #include #inc…… 题解列表 2023年01月07日 0 点赞 0 评论 489 浏览 评分:9.9
c语言解决字符串反转 摘要:解题思路:注意事项:字符串后面有一个'\0’所以要从j-1开始遍历,跳过\0参考代码:#include <stdio.h>#include <stdlib.h>#include <string…… 题解列表 2023年01月07日 0 点赞 0 评论 605 浏览 评分:0.0
c语言字符串拼接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str1[101]={0}; char str2[50…… 题解列表 2023年01月07日 0 点赞 0 评论 588 浏览 评分:9.9
甲流疫情死亡率 摘要:解题思路:注意事项:因为有百分号,所以应该给结果乘100参考代码:#include<stdio.h>int main(){ int a,b; double t; scanf("%d %d",&a,&b…… 题解列表 2023年01月07日 0 点赞 0 评论 911 浏览 评分:8.0