摘要: A:傻逼模拟题,直接上代码好了。 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cmath> 5 #include <algorithm> 6 using namespace std; 7 int 阅读全文
posted @ 2016-08-21 11:28 oyzx~ 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cmath> 5 #include <algorithm> 6 using namespace std; 7 typedef long long in 阅读全文
posted @ 2016-08-17 00:28 oyzx~ 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 题意:给定n,m,令k=1+sigam(inv(i,n))mod 1000000007。 n,m小于等于10^7. 求k^k^k^k....后一个k是前一个k的指数, 求这个值对m的mod,知道指数循环节,这就是个傻逼题,然而考场就是不知道这个,少了点东西,所以出题人就是个傻逼.... 指数循环节: 阅读全文
posted @ 2016-08-17 00:12 oyzx~ 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cmath> 5 #include <algorithm> 6 using namespace std; 7 typedef long long in 阅读全文
posted @ 2016-08-16 23:59 oyzx~ 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cmath> 5 #include <algorithm> 6 using namespace std; 7 typedef long long in 阅读全文
posted @ 2016-08-15 16:23 oyzx~ 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cmath> 5 #include <algorithm> 6 using namespace std; 7 typedef long long in 阅读全文
posted @ 2016-08-13 00:20 oyzx~ 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 题目链接:bzoj2052 题解:http://blog.csdn.net/miku23736748/article/details/52135932 阅读全文
posted @ 2016-08-11 15:39 oyzx~ 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cmath> 5 #include <algorithm> 6 using namespace std; 7 #define maxn 100005 阅读全文
posted @ 2016-07-17 22:22 oyzx~ 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cmath> 5 #include <algorithm> 6 using namespace std; 7 typedef unsigned int 阅读全文
posted @ 2016-07-10 14:13 oyzx~ 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <cmath> 5 #include <algorithm> 6 using namespace std; 7 #define maxn 400005 阅读全文
posted @ 2016-07-02 14:39 oyzx~ 阅读(175) 评论(0) 推荐(0) 编辑