1142: C语言训练-立方和不等式,思路清晰,适合初学者 摘要: 思路:由于是相同指数的累加,所以我们首先就想到用pow()函数来进行遍历累加,这样节省很多时间。 关键在于理解了代码思路后,对输出答案的确定,题中说总和sum<=n,就意味着有两种情况,…… 题解列表 2022年11月09日 0 点赞 0 评论 780 浏览 评分:0.0
分糖果蓝桥杯真题做题完整思路 摘要:解题思路:先判断是否输入的N个数相等,相等跳出,有不相等的继续。给mid数组赋值。根据糖果得失列式子。判断是否为奇数糖果,是计数器和糖果数加一。循环操作1,2,3,4步,直到所有数相等。注意事项: …… 题解列表 2022年11月09日 0 点赞 0 评论 613 浏览 评分:9.9
数组逆序重放(easy) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,a[101]; cin>>n; for(int…… 题解列表 2022年11月09日 0 点赞 0 评论 930 浏览 评分:6.0
尾递归,大大减少运算时间 摘要:解题思路:递归注意事项:递归但是并不完全是递归,是尾递归,通过对于上次的结果的调用,大大减少运算时间。参考代码:#include <iostream>using namespace std;int a…… 题解列表 2022年11月09日 0 点赞 1 评论 408 浏览 评分:6.0
计算书费(简简单单) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ double a[10] = { 2…… 题解列表 2022年11月09日 0 点赞 0 评论 776 浏览 评分:9.3
纯纯萌新写法 摘要:解题思路:纯数学方法注意事项:比较难看懂,纯萌新参考代码: #include<stdio.h> int main() { int n; scanf("%d",&n); int b=n; int…… 题解列表 2022年11月09日 0 点赞 0 评论 466 浏览 评分:9.9
与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[100]={}, x, sum = 0, n; cin >…… 题解列表 2022年11月09日 0 点赞 0 评论 1113 浏览 评分:8.4
emm,感觉有点麻烦 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int n; float a,b,c,d; a=0;b=0;c=0;d=0; scan…… 题解列表 2022年11月09日 0 点赞 2 评论 805 浏览 评分:9.0
2884: 矩阵乘法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int n,m,k; cin>>n>>m>>k;…… 题解列表 2022年11月09日 0 点赞 0 评论 711 浏览 评分:9.9
can can word代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int n; scanf("%d ",&n); int arr[n]; for(int…… 题解列表 2022年11月09日 0 点赞 3 评论 1143 浏览 评分:9.0