通过函数调用的方式完成数字的处理与判断-<C语言> 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int count(int y); void print(int x); void func(int z); int main…… 题解列表 2022年12月14日 0 点赞 0 评论 284 浏览 评分:9.9
Ikaros-判断是否为两位数 C++解决 摘要:解题思路:输入字符串,然后用strlen计算长度,比较即可参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a; char…… 题解列表 2022年12月14日 0 点赞 0 评论 714 浏览 评分:9.9
判定字符位置(for循环及简单的条件判断) 摘要:解题思路:注意事项:参考代码://返回给定字符串s中元音字母的首次出现位置。英语元音字母只有‘a’、‘e’、‘i’、‘o’、‘u’五个。//若字符串中没有元音字母,则返回0。//只考虑小写的情况。#i…… 题解列表 2022年12月14日 0 点赞 0 评论 380 浏览 评分:0.0
陶陶摘苹果2(不需要用数组) 摘要:解题思路:注意事项:题目30厘米的条件不可以忽略参考代码://30厘米板凳,n表示苹果数目,m表示伸手达到的高度,求剩下的苹果数量#include <stdio.h>int main(void){ i…… 题解列表 2022年12月14日 0 点赞 0 评论 516 浏览 评分:0.0
DNA【题解】 摘要:参考代码:a,b=map(int,input().strip().split())print(a,b)'''空格个数'''space=0'…… 题解列表 2022年12月14日 0 点赞 0 评论 413 浏览 评分:9.9
不用数组的和指针的方式完成这道题-《C语言》 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char arr; while((arr = g…… 题解列表 2022年12月14日 0 点赞 0 评论 303 浏览 评分:0.0
蛇形矩阵(两个for循环) 摘要:解题思路:1 3 6 10 15 2 5 9 14 //每一行都等于对应上一行的数减一,如第一行的2等于第一行的3-1;5=6-1;9=10-1;14=15-1…… 题解列表 2022年12月14日 0 点赞 0 评论 306 浏览 评分:0.0
[编程入门]三个数字的排序 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main( ){int a, b, c;cin>>a>>b>>c;if(a>b){in…… 题解列表 2022年12月14日 0 点赞 0 评论 339 浏览 评分:9.9
吾乃元始天尊!!1470: 蓝桥杯基础练习VIP-时间转换 摘要:```c #include int main() { int t; scanf("%d",&t); int h,m,s; h=t/3600; …… 题解列表 2022年12月14日 0 点赞 0 评论 312 浏览 评分:0.0
吾乃元始天尊!!!1133: C语言训练-求1+2!+3!+...+N!的和 摘要:```cpp #include using namespace std; int main() { long long i,n,sum=1,m=0; scanf("%d",&n); …… 题解列表 2022年12月14日 0 点赞 1 评论 249 浏览 评分:9.9