摘要: http://codeforces.com/contest/449/problem/A form WJMZBMR 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 typed... 阅读全文
posted @ 2014-07-20 09:21 acPlay 阅读(154) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/450/problem/B#include#include#includeusing namespace std;typedef long long LL;const long long mod=1000000007;int main(){... 阅读全文
posted @ 2014-07-20 08:22 acPlay 阅读(63) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/450/problem/A 1 #include 2 #include 3 #include 4 using namespace std; 5 int main(){ 6 int n,m,x,k; 7 while(cin>... 阅读全文
posted @ 2014-07-20 08:02 acPlay 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #define MAXN 25 6 using namespace std; 7 int h,w; 8 int ans; 9 int dir[4][2]={-1,0,1,0,0,-1,0,1};10 cha... 阅读全文
posted @ 2014-07-13 12:52 acPlay 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 一道简单的dijkstra 写了好久。。。了个大去 果然代码太弱了#include#include#include#define INF 0x3f3f3f3f#define MAXM 1009using namespace std;long long x[MAXM*MAXM],y[MAXM*MAXM... 阅读全文
posted @ 2014-07-09 20:12 acPlay 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 一道简单的用getline带空格带回车的字符串输入处理问题还是WA了一次 orz。。。。#include#include#includeusing namespace std;int main(){ int i,j,len; string str; int count=0; while(getlin... 阅读全文
posted @ 2014-07-09 20:10 acPlay 阅读(131) 评论(0) 推荐(0) 编辑