题解列表

筛选

巨大的数 (C语言代码)

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

连号区间数 (Java代码)

摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class T1456 { public static int find(int []a) {……

画三角形 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){int i,j=0,m,n;while(scanf("%d",&i)!=E……

程序员爬楼梯 (C++代码)DFS

摘要:解题思路:    直接深度一下解决,爬楼梯的变种题目....难度没啥的。参考代码:#include<bits/stdc++.h> #define hh ios::sync_with_stdio(fa……

超级楼梯 (C++代码)简单的DFS模版题

摘要:解题思路:    使用简单的深度优先算法解决问题。    1.由于不存在负数的楼梯,本着让数据量最大的原则,使用unsigned long long来做变量。    2.dfs----深度优先算法,将……

Tom数 (Java代码)

摘要:解题思路:水题,t接收一下,每次取余10,把结果加到p上,t再除以10,直到剩余一位数,把它也加到p上注意事项:用long型接收参考代码:import java.util.Scanner; pu……

贷款计算 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){   double a,b,c;   scanf("%lf %lf %lf", &a,&c,&b);   pri……