题解列表

筛选

c语言解决问题

摘要:```c // 3*bottle->1 #include int main() { int m; while((scanf("%d",&m))!=0) { if(……

编写题解 1018: [编程入门]有规律的数列求和

摘要:解题思路:先将分母的值保留,然后将分子的值作为下一个数的分母,然后将分子加上分母作为下一个数的分子。注意事项:观察数列,其实不用搞得那么复杂参考代码:#include<stdio.h>int main……

[编程入门]自由下落的距离计算

摘要:解题思路:每次下落是之前的一半,所以直接用自身不断除2,累次相加获得总的路程。求路程时要注意第一次下落和最后一次下落的,第一次下落在循环开始前就添加上,最后一次的高度应该减去前一次的高度,即将被减后的……

Ikaros-打印图案 C++解决

摘要:解题思路:对齐打印即可参考代码:#include<iostream>using namespace std;int main(){ cout << "  *" << endl; cout << " *……

动态规划 路径问题

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){    int T,N,A[100][100],B[100][100]……

麻烦的解法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a,b,c,d,e,x,t;    scanf("%d",&x);        if(x/1<1……

编写题解 1074: 数字整除

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(int argc, char *argv[]) { int n,i,g; in……

A+B for Input-Output Practice题解

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