摘要: 直接搜索,简单题;#include#include#include#include#include#define maxn 505#define ll long longusing namespace std;int map[maxn][maxn];int dir[4][2]={{0,1},{1,0... 阅读全文
posted @ 2014-07-17 14:49 Yours1103 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 扩展欧几里得#include#include#include#include#define maxn 3000009#define ll long longusing namespace std;void gcd(ll a,ll b,ll& d,ll& x,ll &y){ if(!b){d=a... 阅读全文
posted @ 2014-07-17 11:27 Yours1103 阅读(235) 评论(0) 推荐(0) 编辑