题解列表

筛选

分糖果蓝桥杯真题做题完整思路

摘要:解题思路:先判断是否输入的N个数相等,相等跳出,有不相等的继续。给mid数组赋值。根据糖果得失列式子。判断是否为奇数糖果,是计数器和糖果数加一。循环操作1,2,3,4步,直到所有数相等。注意事项:  ……

数组逆序重放(easy)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){   int n,a[101];   cin>>n;   for(int……

尾递归,大大减少运算时间

摘要:解题思路:递归注意事项:递归但是并不完全是递归,是尾递归,通过对于上次的结果的调用,大大减少运算时间。参考代码:#include <iostream>using namespace std;int a……

计算书费(简简单单)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ double a[10] = { 2……

纯纯萌新写法

摘要:解题思路:纯数学方法注意事项:比较难看懂,纯萌新参考代码: #include<stdio.h> int main() { int n; scanf("%d",&n); int b=n; int……

emm,感觉有点麻烦

摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){    int n;    float a,b,c,d;    a=0;b=0;c=0;d=0;    scan……

2884: 矩阵乘法

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int n,m,k; cin>>n>>m>>k;……

can can word代码

摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){    int n;    scanf("%d ",&n);    int arr[n];    for(int……

编写题解 2929: 网线主管

摘要:解题思路: 二分法注意事项:数组要定义成double类型的参考代码:#include<stdio.h>double a[10010]={0},mid;int n,k,mx;int m=1;int r=……