用VS来写最大值和最小值之差 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int M; scanf_s("%d", &M); int number[10000]; int i = 0;…… 题解列表 2024年08月07日 0 点赞 0 评论 246 浏览 评分:0.0
1681: 数据结构-行编辑程序(c语言代码,包你懂的) 摘要:此题有两个点要注意,就是空格要不要管,还有多组数据的输入怎么处理 题目的输入是这样的: whil##ilr#e(s#*s) outcha@ putchar(*s=#++);这个输入前面是…… 题解列表 2024年08月07日 0 点赞 0 评论 405 浏览 评分:0.0
数据范围太大,用Python解决,同样的思路c++两个点都过不了 摘要:能过的def solve(a, n): temp = a if a < 0: a = -a stack = [] 题解列表 2024年08月07日 0 点赞 0 评论 132 浏览 评分:0.0
编写题解 1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int min(int a,int b){ return a>b?b:a;}int ma…… 题解列表 2024年08月07日 0 点赞 0 评论 258 浏览 评分:0.0
字符串分类统计C++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){char a[200];cin.get…… 题解列表 2024年08月07日 6 点赞 0 评论 836 浏览 评分:0.0
1808: [编程基础]输入输出练习之精度控制1(c语言代码) 摘要:注意事项: 1.单精度是float 2.格式控制是%f 3.保留三位小数是%.3f ```c #include int main(){ float a; scanf("%f",&a…… 题解列表 2024年08月07日 0 点赞 0 评论 739 浏览 评分:0.0
1810: [编程基础]输入输出练习之精度控制3(c语言代码,包懂版) 摘要:题目说了只有数字是靠右对齐,字符不用 整型是靠右对齐4位**%4.d** 单精度是靠右对齐4位,保留4位小数**%4.2f** 双精度是靠右对齐4位,保留12位小数**%4.12lf** ``…… 题解列表 2024年08月07日 1 点赞 0 评论 324 浏览 评分:0.0
(c语言代码) 摘要:解释一下,%e是科学计数法的形式输出,%g用来输出浮点数,系统会自动选 f 格式或 e 格式输出,但选择其中长度较短的格式,不输出无意义的0 ```c #include int main() …… 题解列表 2024年08月07日 0 点赞 0 评论 390 浏览 评分:0.0
奖学金:结构体多关键字排序 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <algorithm> using namespace std; struct st{ int sn,…… 题解列表 2024年08月08日 2 点赞 0 评论 333 浏览 评分:0.0
字符串分类统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { int letters = 0, digit…… 题解列表 2024年08月08日 1 点赞 0 评论 281 浏览 评分:0.0