c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, height[30],i,max_height; scanf("%d", &n); …… 题解列表 2023年06月26日 0 点赞 0 评论 500 浏览 评分:0.0
[编程入门]二维数组的转置(虽不费脑子,但关于数组的方法一定要掌握,本题仅供放松使用,没有任何技术含量) 摘要:解题思路:本题解法比较水但是非常简单,无脑敲就对了注意事项:别把字母搞混了参考代码:#includeint main(){ int a,b,c,d,e,f,h,j,k; scanf("%d…… 题解列表 2023年06月26日 0 点赞 1 评论 364 浏览 评分:9.8
利用二维数组实现蛇形矩阵 摘要:解题思路: 利用二维数组注意事项: 1.先将每行的第一个数字赋值 2.从每行的第二个数字开始,后一个数据为前一个数据加一个数,这个数是一个等差数列参考代码:#include int main() { …… 题解列表 2023年06月26日 0 点赞 0 评论 643 浏览 评分:9.9
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int c, n, i; scanf("%d", &c); while (c--) { …… 题解列表 2023年06月26日 0 点赞 0 评论 442 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int least_num(int a,int b){ return a%b==0 ? b : least_num(b, a % …… 题解列表 2023年06月26日 0 点赞 0 评论 780 浏览 评分:0.0
阶乘数列1064 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String args[]) { double sum = 0…… 题解列表 2023年06月26日 0 点赞 0 评论 585 浏览 评分:0.0
C++简单解含k个3的数 摘要:#### 解题思路 先设置一个循环对输入的m进行取模,如果它等于3,那么count计数器就++; 然后再通过逻辑表达式对满足条件的的m进行判断(输出"YES"还是"NO") #### 注意事项 …… 题解列表 2023年06月26日 0 点赞 0 评论 1198 浏览 评分:8.2
查找最大元素(没用向量,简单写法,但是时间复杂度大) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<string>using namespace std;int main(){ string s,s1; …… 题解列表 2023年06月27日 0 点赞 0 评论 595 浏览 评分:9.9
1074:-数字整除 摘要:解题思路:本题的本质是高精度大数除以低精度小数。字符型的的本质就是整形数据。以字符串的形式接收高精度大数,把每一个字符转变为数字存放在数组中进行运算。注意事项:参考代码:char a[1000]; …… 题解列表 2023年06月27日 0 点赞 0 评论 669 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[101],c; int i,max_sign=…… 题解列表 2023年06月27日 0 点赞 0 评论 469 浏览 评分:0.0