上一页 1 2 3 4 5 6 ··· 22 下一页
摘要: #include#include#include#include#include#includeusing namespace std;int gcd(int x,int y){ return y==0?x:gcd(y,x%y);}int main(){ int h,m,s; in... 阅读全文
posted @ 2015-08-13 19:10 sola94 阅读(113) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#include#includeusing namespace std;int vis[50];int fa[50];int num[50];int find(int x){ return fa[x]==x?x:find(fa[x... 阅读全文
posted @ 2015-08-13 00:15 sola94 阅读(194) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;int mat[200][200];int ran[200];int main(){ int n,m; int i,j,k; int f,t; while(... 阅读全文
posted @ 2015-08-12 19:42 sola94 阅读(132) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;double p[1010][1010][5];double dp[1010][1010];int n,m;void fun(){ int i,j,k; for(i=n;i>=1;i-... 阅读全文
posted @ 2015-08-12 16:48 sola94 阅读(109) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std;int hp1 , hp2 ;double dp[2][2100] ;double a , b , p ;double ka[10] , kb[10] ;int main(){ int i , j ,... 阅读全文
posted @ 2015-08-11 22:30 sola94 阅读(156) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #define lson l,mid,os2[j]&&maxxans) ans=dp[j]; } printf("%d\n",ans); }... 阅读全文
posted @ 2015-08-09 22:32 sola94 阅读(124) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #define lson l,m,rt> 1; build(lson); build(rson); up(rt);}int A,B;void update(... 阅读全文
posted @ 2015-08-08 22:09 sola94 阅读(128) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#include#define INF 30000000#define pai 3.1415926using namespace std;char s1[1000],s2[1000];int dp[1000][1000];int mai... 阅读全文
posted @ 2015-08-06 21:32 sola94 阅读(104) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#includeusing namespace std;int n,c;int a[100000+100];int solve(int m){ int ret=1; int i,j,k; int l=0,r; f... 阅读全文
posted @ 2015-08-05 21:46 sola94 阅读(138) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#include#include#define INF 1000000using namespace std;int d[200][200];int main(){ int n,m; while(scanf("%d%d",&n,&m)!=E... 阅读全文
posted @ 2015-08-05 19:50 sola94 阅读(104) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 22 下一页