题解列表
编写题解 1248: 简单的事情
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
int main(){
double a,b,c,d;
while(scanf("%lf%lf",&a,&b)!=EOF){……
C语言训练-自由落体问题(c语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; double a=100,sum=100; scanf("%d",&n); ……
简单思路之三个字符串的排序
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[3][100],tmp[100]; int i,j……
Tom数(c语言代码)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
int main()
{
long long n;
while(~scanf("%lld",&n))
……
编写题解 1246: 第几天 不考虑润年答案也对?
摘要:解题思路:正常的累加注意事项:参考代码:#include<stdio.h>
int main()
{int a,b,c,sum,d;
char i,j;
while(scanf("%d%c%d……
algorithm库是真好用
摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>#include <string>using namespace std;int main(……
编写题解 1231: 杨辉三角
摘要:解题思路:通过迭代进行循环注意事项:参考代码:#include<stdio.h>
int main(){
int a,b,c,d,f[100][100];
while(scanf("%d",……
简单却易错的hello world!
摘要:解题思路:此题只有输出,使用printf函数注意事项:观察体型有三行,要使用三个printf函数 且每一个函数都要用到转行符 \n 并且*的个数不用一个一个数,要从题目上复制到代码中,不然是易错题参考……
优质题解
1110: 2^k进制数,动态规划dp解决!
摘要:##解题思路:
利用动态规划的思想:
二维矩阵的dp[i][j]值的含义是:当一共有(i+1)位数字且最高位数字位数字是j的时候满足条件的数字总个数是多少。
###初始条件:
dp[0][]=……