吾乃元始天尊!!1470: 蓝桥杯基础练习VIP-时间转换 摘要:```c #include int main() { int t; scanf("%d",&t); int h,m,s; h=t/3600; …… 题解列表 2022年12月14日 0 点赞 0 评论 289 浏览 评分: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 评论 321 浏览 评分:9.9
蛇形矩阵(两个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 评论 292 浏览 评分:0.0
不用数组的和指针的方式完成这道题-《C语言》 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { char arr; while((arr = g…… 题解列表 2022年12月14日 0 点赞 0 评论 289 浏览 评分:0.0
DNA【题解】 摘要:参考代码:a,b=map(int,input().strip().split())print(a,b)'''空格个数'''space=0'…… 题解列表 2022年12月14日 0 点赞 0 评论 396 浏览 评分:9.9
陶陶摘苹果2(不需要用数组) 摘要:解题思路:注意事项:题目30厘米的条件不可以忽略参考代码://30厘米板凳,n表示苹果数目,m表示伸手达到的高度,求剩下的苹果数量#include <stdio.h>int main(void){ i…… 题解列表 2022年12月14日 0 点赞 0 评论 500 浏览 评分:0.0
判定字符位置(for循环及简单的条件判断) 摘要:解题思路:注意事项:参考代码://返回给定字符串s中元音字母的首次出现位置。英语元音字母只有‘a’、‘e’、‘i’、‘o’、‘u’五个。//若字符串中没有元音字母,则返回0。//只考虑小写的情况。#i…… 题解列表 2022年12月14日 0 点赞 0 评论 358 浏览 评分:0.0
Ikaros-判断是否为两位数 C++解决 摘要:解题思路:输入字符串,然后用strlen计算长度,比较即可参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a; char…… 题解列表 2022年12月14日 0 点赞 0 评论 695 浏览 评分:9.9
通过函数调用的方式完成数字的处理与判断-<C语言> 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int count(int y); void print(int x); void func(int z); int main…… 题解列表 2022年12月14日 0 点赞 0 评论 261 浏览 评分:9.9
矩阵对角线元素之和 摘要:参考代码如下,注释已写 #include #define N 10//N最大为10,那么就定义为常量10 int main(void) { int …… 题解列表 2022年12月14日 0 点赞 0 评论 313 浏览 评分:9.9