![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
POJ
Flaze_
一只蒟蒻【扑通扑通跪laekov 扑通扑通跪yjqqqaq 扑通扑通跪mhy12345 扑通扑通跪zms_
展开
-
POJ 1743 Musical Theme【SAM
POJ……啊 Exciting! 【英语能力渣看不懂题的我QwQ】 【而且要CE不开心QwQ】 #include #include #include #include #define FLAZE_NAIVE #define MAXN 40057 #define MAXM 180 #define INF 0x3f3f3f3f using namespace std; int n; struc原创 2016-08-02 17:37:03 · 256 阅读 · 0 评论 -
POJ 2417 Discrete Logging【大步小步
裸的BSGS 顺便BSGS真的不用求逆元,既然可以设x=ka+b,不如直接设成x=ka-b,乘到那边就完事了 不用求但是还是要用到逆元的思想 以上 #include #include #include #include #include #include #include using namespace std; long long B,N,P; long long mult(lo原创 2016-09-28 14:53:28 · 437 阅读 · 0 评论 -
POJ 1094 Sorting It All Out【拓扑序
嗯……大过年的先说声新年快乐啦【估计没人看就写给以后可能会复习的我好了【【 呃……我这道题也是WA的哭了出来 直接从腊月WA到了今年……呃……初三了? 重点是,这道题秉承了样例必须水的……呃……优良传统x 于是各种被水淹没 不知所措 终于 挂在了这个数据上 4 4 A C D B 首先这的确是一道水题………然而为什么会WA的这么凄惨…………在对比了原创 2016-02-10 22:07:19 · 406 阅读 · 0 评论 -
POJ 1236 Network of Schools 【tarjan
tarjan乱搞,判下入度出度 WA了一把……tarjan出栈的时候忘记打标机了 #include #include #include #define MAXN 105 using namespace std; int n; struct t1{ int to,nxt; }edge[(MAXN*MAXN)<<1]; int cnt_edge=0; int fst[MAXN]; void a原创 2016-09-29 14:50:04 · 281 阅读 · 0 评论