题解 1067: 二级C语言-分段函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int x; double resu=1; …… 题解列表 2022年02月20日 0 点赞 0 评论 635 浏览 评分:0.0
1016: [编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:for i in range(100, 1000): if i == eval(str(i)[0])**3+eval(str(i)[1])**3+eval(str(…… 题解列表 2022年02月20日 0 点赞 0 评论 393 浏览 评分:0.0
C语言代码,简单易懂 摘要:解题思路:一个穷举法注意事项:因为是字符串,注意要有数字要有单引号。参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>int main…… 题解列表 2022年02月20日 0 点赞 0 评论 500 浏览 评分:0.0
题解 1068: 二级C语言-温度转换 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int ctof(int c) { int F; F= 32+c*9/5; return F; }…… 题解列表 2022年02月20日 0 点赞 0 评论 328 浏览 评分:0.0
1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:M,N = map(int, input().split())dis = 0height = M * pow(0.5, N)for i in range(1, N+1):…… 题解列表 2022年02月20日 0 点赞 0 评论 415 浏览 评分:0.0
1020: [编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:n = eval(input())ini = 1for i in range(n-1): sum = (ini+1)*2 ini = sumprint(sum…… 题解列表 2022年02月20日 0 点赞 0 评论 356 浏览 评分:0.0
二级c语言-温度转换(C++ 代码) 摘要:解题思路: 注意事项: 在做5除于9时要用小数点,不然会返回0.参考代码:#include <iostream>using namespace std;#include <iomanip>int ma…… 题解列表 2022年02月20日 0 点赞 0 评论 634 浏览 评分:0.0
二级c语言-分段函数(C++ 代码) 摘要:解题思路:参考代码: #include <iostream>using namespace std;#include <iomanip> //包含fixed和setprecisionint main …… 题解列表 2022年02月20日 0 点赞 0 评论 551 浏览 评分:0.0
二级c语言-求偶数和(C++ 代码) 摘要:解题思路:1、先定义 n2、然后根据n输数组参考代码:#include <iostream>using namespace std;int main () { int i, n, arry[1…… 题解列表 2022年02月20日 0 点赞 0 评论 322 浏览 评分:0.0
1772: [编程入门]二进制移位练习 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ int a; scanf("%d", &a); printf("%d\n", (a >> …… 题解列表 2022年02月20日 0 点赞 0 评论 438 浏览 评分:0.0