[编程入门]求和训练(一次循环实现)[C语言代码] 摘要:解题思路: 思路:for循环的条件判断这里,可以很好的利用下,for(double i=1; i<=a||i<=b||i<=c; i++) 逻辑或判断可…… 题解列表 2023年07月05日 0 点赞 0 评论 415 浏览 评分:9.9
懒人求解法 摘要:解题思路:数组快速计算结果注意事项:数组不要越界访问参考代码:#include<stdio.h>int main(){ int a[9],b; for(b=0;b<9;b++) { …… 题解列表 2023年07月06日 0 点赞 0 评论 368 浏览 评分:9.9
一看就懂,简单解决 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a, b; while (scanf("%d%d", &a, &b) == 2) { …… 题解列表 2023年07月06日 0 点赞 0 评论 488 浏览 评分:9.9
简简单单一行搞定 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\nHello World!\n***…… 题解列表 2023年07月06日 0 点赞 0 评论 376 浏览 评分:9.9
三元运算简单解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); printf("…… 题解列表 2023年07月06日 0 点赞 0 评论 371 浏览 评分:9.9
公约公倍数代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int m,int n){ int r; while(m%n) { r=m%n; …… 题解列表 2023年07月06日 0 点赞 0 评论 371 浏览 评分:9.9
2798: 整数序列的元素最大跨度值(C语言) 摘要: #include int main() { int n; scanf("%d",&n); int a[n]; int i; for(i=0;i…… 题解列表 2023年07月06日 0 点赞 1 评论 611 浏览 评分:9.9
3ms解决问!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(void) { int num; scanf("%d", &num…… 题解列表 2023年07月06日 0 点赞 0 评论 434 浏览 评分:9.9
2803: 整数的个数(C语言,数组解法) 摘要: #include int main() { int n; scanf("%d",&n); int a[n]; int i; for(i=0;i…… 题解列表 2023年07月07日 0 点赞 0 评论 629 浏览 评分:9.9
2805: 乘方计算(C语言之奇奇怪怪解法) 摘要: #include //power 函数使用递归方式计算乘方。如果指数 n 为 0,返回 1。如果指数 n 为偶数,递归计算 a^(n/2) 并返回结果的平方。如果指数 n 为奇数,递归计算 a…… 题解列表 2023年07月07日 0 点赞 1 评论 606 浏览 评分:9.9