2015年5月28日

poj 1517 u Calculate e

摘要: 没说的,水#include #include using namespace std;int factorial(int n){ if(n==1||n==0) return 1; else return n*factorial(n-1);}int main()... 阅读全文

posted @ 2015-05-28 12:32 王老大- 阅读(130) 评论(0) 推荐(0) 编辑

poj 2316 SPIN

摘要: 各个位相加对10取余。#include using namespace std;string st, res;int main(){ getline(cin, res); while (getline(cin, st) && st != "") { for (in... 阅读全文

posted @ 2015-05-28 11:20 王老大- 阅读(145) 评论(0) 推荐(0) 编辑

POJ 1579 Function Run Fun

摘要: 方程都给出来了,直接敲代码就好了。#include #include #include using namespace std;int dp[25][25][25];int dfs(int a,int b,int c){ if(a20 || b>20 || c>20) retur... 阅读全文

posted @ 2015-05-28 10:05 王老大- 阅读(134) 评论(0) 推荐(0) 编辑

导航