优质题解 1007:[编程入门]分段函数求值 摘要:解题思路:声明两个变量x,y,其中x 获取用户输入,y根据函数获取赋值。注意事项: 1,函数中“1<=x<10"在if 条件语句中要写成”x>=1&&x<10“。2,”2x-1“”3x-11“两个式子…… 题解列表 2023年07月31日 4 点赞 9 评论 4678 浏览 评分:8.8
简单调用函数解决问题 摘要:参考代码:# include <stdio.h># include <string.h> //使用strlen()计算数组长度需添加此头文件void abc(char str[])…… 题解列表 2023年07月31日 0 点赞 0 评论 530 浏览 评分:0.0
1005:[编程入门]温度转换 摘要:解题思路:输入华氏温度,输出摄氏温度。注意事项:1,取两位小数的写法。2,原公式乘号省略。3,注意题目中要求的输出形式。参考代码:#include<stdio.h>int main(){ flo…… 题解列表 2023年07月31日 0 点赞 0 评论 611 浏览 评分:0.0
多组输入的循环方式解决 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main() { int n; scanf("%d", &n);…… 题解列表 2023年07月31日 0 点赞 0 评论 561 浏览 评分:0.0
蓝桥杯算法提高VIP-最大最小值 #max_element和min_element```c++#include#include#include#includeusingnamespacestd;intmain(){intn;vectornums;mapmp;cin>>n;nums.resize(n);for(inti=0;i 题解列表 2023年07月31日 0 点赞 0 评论 609 浏览 评分:0.0 信息学奥赛一本通T1239-统计数字 C++ STL 实现 摘要:# STL map `key`-> `value` ```c++ #include #include #include using namespace std; int main() …… 题解列表 2023年07月31日 0 点赞 0 评论 1055 浏览 评分:6.0 画矩形(思路简单) 摘要:解题思路:注意事项:根据条件写代码参考代码:#include <stdio.h>int main(){ int x,y,c,n; scanf("%d %d %c %d",&x,&y,&c,…… 题解列表 2023年07月31日 0 点赞 0 评论 585 浏览 评分:9.9 c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct student{ int id; int score; …… 题解列表 2023年07月30日 0 点赞 0 评论 599 浏览 评分:0.0 与7无关的数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,t=0,s=0; scanf("%d",&n); for(int i=1;i<=…… 题解列表 2023年07月30日 0 点赞 2 评论 777 浏览 评分:9.9 优质题解 去掉空格(C语言 精简!) 摘要:解题思路: 利用gets()返回值(非0为真)作为while循环条件解决多行输出问题利用指针变量p对字符串进行遍历,到\0停止遍历注意事项: *++p!='\0' 是先执行++…… 题解列表 2023年07月30日 0 点赞 3 评论 1957 浏览 评分:8.3 « 12...481482483484485486487...29572958 »
信息学奥赛一本通T1239-统计数字 C++ STL 实现 摘要:# STL map `key`-> `value` ```c++ #include #include #include using namespace std; int main() …… 题解列表 2023年07月31日 0 点赞 0 评论 1055 浏览 评分:6.0
画矩形(思路简单) 摘要:解题思路:注意事项:根据条件写代码参考代码:#include <stdio.h>int main(){ int x,y,c,n; scanf("%d %d %c %d",&x,&y,&c,…… 题解列表 2023年07月31日 0 点赞 0 评论 585 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct student{ int id; int score; …… 题解列表 2023年07月30日 0 点赞 0 评论 599 浏览 评分:0.0
与7无关的数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,t=0,s=0; scanf("%d",&n); for(int i=1;i<=…… 题解列表 2023年07月30日 0 点赞 2 评论 777 浏览 评分:9.9
优质题解 去掉空格(C语言 精简!) 摘要:解题思路: 利用gets()返回值(非0为真)作为while循环条件解决多行输出问题利用指针变量p对字符串进行遍历,到\0停止遍历注意事项: *++p!='\0' 是先执行++…… 题解列表 2023年07月30日 0 点赞 3 评论 1957 浏览 评分:8.3