C语言考试练习题_排列(小白写C++) 摘要:#include<iostream> using namespace std; int main() { int i, j, k, t, a[4]; for (i = 0;…… 题解列表 2022年10月25日 0 点赞 0 评论 555 浏览 评分:9.0
最简的题解,等比公式求和 摘要:解题思路:要多利用数学公式注意事项:参考代码:b=int(input()) a=100*(1-0.5**b)*4-100 //路程是位移的两倍,减去一开始多算的100就行了 print(…… 题解列表 2022年10月27日 0 点赞 0 评论 497 浏览 评分:9.0
输入输出练习之精度控制3(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { char a…… 题解列表 2022年11月01日 1 点赞 0 评论 986 浏览 评分:9.0
C语言解决输出绝对值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){double x;scanf("%lf",&x);if(x<0)printf("%.2f\n",-x);if(x>…… 题解列表 2022年11月02日 1 点赞 3 评论 1558 浏览 评分:9.0
求整数的和与均值(c++最简解) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ int n,sum,i,a; …… 题解列表 2022年11月03日 0 点赞 0 评论 749 浏览 评分:9.0
求平方和(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<…… 题解列表 2022年11月03日 0 点赞 0 评论 731 浏览 评分:9.0
解码解码解码解码 C 摘要:解题思路:注意事项:参考代码:#includeint main(){ char a[200]; scanf("%s",a); int i,j; …… 题解列表 2022年11月03日 0 点赞 0 评论 611 浏览 评分:9.0
for循环巧妙求解 摘要:解题思路:通过for循环一个个判断输入的数是偶数还是基数,如果是偶数则获取i值通过列表切片,将其相加即可满足。注意事项:参考代码:y=input()x=input().split( )op=0for …… 题解列表 2022年11月05日 0 点赞 0 评论 585 浏览 评分:9.0
双向循环链表带图详解 摘要:初学者对于链表不是很熟悉,可以借助画图来理清思路,帮助解题 { int c1,c2,c3,c4,c5; scanf("%d%d%d%d%d",&…… 题解列表 2022年11月08日 0 点赞 4 评论 591 浏览 评分:9.0