getchar用法。。。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,m; char str[100]; scanf("%d",&n); getchar(); get…… 题解列表 2022年12月03日 0 点赞 0 评论 159 浏览 评分:0.0
C++代码,需要注意当输入回车时表示输入结束 摘要:参考代码:#include<string>using namespace std;int main(){ string s; getline(cin, s); for (int i = 0; i < …… 题解列表 2022年12月03日 0 点赞 0 评论 177 浏览 评分:0.0
自定义一个函数判断是否为素数 摘要:```c #include void prime(int n) { int t=0; for(int i=2;i…… 题解列表 2022年12月03日 0 点赞 0 评论 172 浏览 评分:0.0
数据结构-快速排序 摘要:解题思路:注意事项: 存储数组0位置设为空,起初存数。参考代码:#include<iostream>using namespace std;int partition(int* a,int lo…… 题解列表 2022年12月03日 0 点赞 0 评论 227 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-修剪灌木 摘要:```c #include int main() { int a; while(~scanf("%d", &a)) for(int i=1;ii-1?a-i:i-1…… 题解列表 2022年12月03日 0 点赞 0 评论 255 浏览 评分:0.0
C语言 最小绝对值& 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>#define LONG 10int main(){ int nums[LONG] …… 题解列表 2022年12月03日 0 点赞 0 评论 166 浏览 评分:0.0
2790: 分段函数 摘要:解题思路:注意事项:参考代码:import sysx = float(input())if x < 0 or x >= 20: sys.exit()elif x < 5: print(&#…… 题解列表 2022年12月03日 0 点赞 0 评论 259 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断(弱智版讲解) 摘要:解题思路:利用数组来储存对应的数字之后遍历输出注意事项:注意数组遍历的是角标,角标对应的数字才能输出参考代码:#include<stdio.h>int main(){ int j,i=0 ,a; in…… 题解列表 2022年12月04日 0 点赞 0 评论 172 浏览 评分:0.0
2792: 三角形判断 摘要:解题思路:注意事项:参考代码:a,b,c = map(int,input().strip().split())if a + b > c and a + c > b and b + c > a: …… 题解列表 2022年12月04日 0 点赞 0 评论 402 浏览 评分:0.0
二级-求偶数和 摘要:参考代码如下 #include int main(void) { int n, x, i, sum = 0, t; scanf("%d", &n)…… 题解列表 2022年12月05日 0 点赞 0 评论 340 浏览 评分:0.0