12 2013 档案

摘要:原题链接:http://acm.uestc.edu.cn/problem.php?pid=1056题目:大小写切换分析:以前这种问题我都是用dp写的,最近学到了一种更简洁的方法,特此记录下来! 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 #define maxn 200000510 #define LL long long11 int T,n;12 char s[220];13 int main()14 {15 scanf(" 阅读全文
posted @ 2013-12-12 23:29 EtheGreat 阅读(192) 评论(0) 推荐(0)
摘要:原题链接:http://acm.uestc.edu.cn/problem.php?pid=1141分析:运用欧拉函数可解此题。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #define LL long long12 using namespace std;13 int T;14 int n;15 int gcd(int a,int b)16 {17 if(b==0)return a;18... 阅读全文
posted @ 2013-12-10 01:23 EtheGreat 阅读(180) 评论(0) 推荐(0)