C语言训练-"水仙花数"问题1(小白写C++) 摘要:#include<iostream> using namespace std; int main() { int i,a,b,c; cin>>i; a=i%…… 题解列表 2022年10月25日 0 点赞 0 评论 265 浏览 评分:9.9
利用printf函数实现Hello World 摘要:解题思路:利用printf函数注意事项:注意换行符即可参考代码:#include<stdio.h>int main(){ printf("**************************\n"…… 题解列表 2022年10月25日 0 点赞 1 评论 181 浏览 评分:8.7
利用递归求和 摘要:解题思路:先设置三个递归函数,再在入口函数里调用该函数的相应值进行求和注意事项:递归函数设置时要注意前后关系,返回值类型以及设置出口,在main函数里注意求和时的数据类型参考代码:#include<s…… 题解列表 2022年10月25日 0 点赞 1 评论 170 浏览 评分:9.9
素数回文数的个数代码 摘要:解题思路:注意事项:在1000以内的回文数只需判断首位数即可参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>#include …… 题解列表 2022年10月25日 0 点赞 0 评论 753 浏览 评分:9.9
级数求和C语言版 摘要:解题思路:写个while循环,当Sn>K时结束循环,退出循环后输出n(小白初次写,请多多关照!)注意事项:参考代码:#include<stdio.h>int main(){ int m=0,K; do…… 题解列表 2022年10月25日 0 点赞 0 评论 1539 浏览 评分:9.9
思路简单的c语言啊 摘要:1,原题链接:[修建灌木](https://www.dotcpp.com/oj/problem2657.html "修建灌木") 2,解题思路: 由题意容易找寻规律,若灌木每天从早上到…… 题解列表 2022年10月25日 0 点赞 0 评论 423 浏览 评分:9.3
C语言考试练习题_排列(小白写C++) 摘要:#include<iostream> using namespace std; int main() { int i, j, k, t, a[4]; for (i = 0;…… 题解列表 2022年10月25日 0 点赞 0 评论 344 浏览 评分:9.0
2种方法写题解 摘要:解题思路:注意事项:参考代码:a= input()k=0for i in a: if 47<ord(i) and ord(i)<58: #ASCII码判断是不是数字 k+=1pr…… 题解列表 2022年10月25日 0 点赞 0 评论 379 浏览 评分:0.0
编写题解 2942: 机器翻译 摘要:解题思路:看代码注解注意事项:注意word参考代码#include<stdio.h>int main(){ //输入函数 int n,m,i,j; int a;//把a定义成一个数组反而就出现错…… 题解列表 2022年10月25日 0 点赞 0 评论 408 浏览 评分:9.9
简单的fot循环语句即可 摘要:解题思路:注意事项:参考代码:# include <stdio.h>int main(void){ int a,n,i; int Sn; scanf("%d", &n); a = 0; Sn = 0;…… 题解列表 2022年10月25日 0 点赞 0 评论 196 浏览 评分:0.0