使用pow函数求水仙花数 摘要:#include<stdio.h> #include<math.h> int main() { int ave, gae; int k1, k2, k3; scan…… 题解列表 2022年10月29日 0 点赞 0 评论 234 浏览 评分:9.9
【C】校门外的树合并重叠区间法 摘要:解题思路: 通过合并重叠区间方式计算,避免巨大数组注意事项: 总树木为长度+1 挖掘树数为初始点-末尾点+1设2个区间为a1~a2,b1~b2 判断重叠方法为b1<=a2 && b2>=a1参考代码:…… 题解列表 2022年10月29日 0 点赞 0 评论 316 浏览 评分:9.9
兰顿蚂蚁python代码,正确,小白水平可读懂 摘要:解题思路:注意事项:参考代码:#兰顿蚂蚁#输入m,n=map(int,input().split())l1=[]for i in range(m):#输入矩阵 l1.append(list(ma…… 题解列表 2022年10月29日 0 点赞 0 评论 206 浏览 评分:9.9
1012.字符串分类统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char ch; int letter,number,blank,other; letter=number=b…… 题解列表 2022年10月29日 0 点赞 0 评论 206 浏览 评分:9.9
1093——字符逆序 摘要:参考代码:#include"stdio.h" #include"string.h" typedef char string[111]; string str; void fun(char *s…… 题解列表 2022年10月29日 0 点赞 0 评论 200 浏览 评分:0.0
暴力枚举法题解 摘要:解题思路: 本题解采用暴力解法,就是使用多层for循环来求公、母、雏鸡的个数。 原来的思路:使用3层for循环,来枚举这三种 题解列表 2022年10月29日 0 点赞 0 评论 324 浏览 评分:9.9
循环入门练习1(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int s=0; for(int i=…… 题解列表 2022年10月29日 0 点赞 0 评论 350 浏览 评分:9.9
统计数字字符个数用C++来实现 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ string s; int…… 题解列表 2022年10月29日 0 点赞 0 评论 419 浏览 评分:9.9
sizeof的大作用(简单C++) 摘要:#include<iostream> using namespace std; #include<cstdio> int main() { printf("%d %d %d %d %…… 题解列表 2022年10月29日 0 点赞 0 评论 250 浏览 评分:9.9
调用数学函数库求解 摘要:解题思路:先输入三个数字,依次求解累加注意事项:注意不要把小数点丢了,这是一个小细节。参考代码:#include<stdio.h> #include<math.h> int main() { …… 题解列表 2022年10月29日 0 点赞 0 评论 176 浏览 评分:0.0