懒人求解法 摘要:解题思路:数组快速计算结果注意事项:数组不要越界访问参考代码:#include<stdio.h>int main(){ int a[9],b; for(b=0;b<9;b++) { …… 题解列表 2023年07月06日 0 点赞 0 评论 477 浏览 评分:9.9
一看就懂,简单解决 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a, b; while (scanf("%d%d", &a, &b) == 2) { …… 题解列表 2023年07月06日 0 点赞 0 评论 598 浏览 评分:9.9
简简单单一行搞定 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("**************************\nHello World!\n***…… 题解列表 2023年07月06日 0 点赞 0 评论 489 浏览 评分:9.9
三元运算简单解决 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); printf("…… 题解列表 2023年07月06日 0 点赞 0 评论 508 浏览 评分:9.9
公约公倍数代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int m,int n){ int r; while(m%n) { r=m%n; …… 题解列表 2023年07月06日 0 点赞 0 评论 477 浏览 评分: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 评论 745 浏览 评分:9.9
3ms解决问!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(void) { int num; scanf("%d", &num…… 题解列表 2023年07月06日 0 点赞 0 评论 550 浏览 评分: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 评论 789 浏览 评分:9.9
2805: 乘方计算(C语言之奇奇怪怪解法) #include//power函数使用递归方式计算乘方。如果指数n为0,返回1。如果指数n为偶数,递归计算a^(n/2)并返回结果的平方。如果指数n为奇数,递归计算a^((n-1)/2),将结果与a相乘,然后再乘以结果的平方。longlongintpower(inta, 题解列表 2023年07月07日 0 点赞 1 评论 724 浏览 评分:9.9
2819: 数字反转(C语言解法)(while循环) 摘要: #include int main() { int num; scanf("%d",&num); int newnum=0;//新反转过来的数 int a; w…… 题解列表 2023年07月07日 1 点赞 0 评论 863 浏览 评分:9.9