上一页 1 2 3 4 5 6 7 8 ··· 22 下一页

2017年7月13日

多校 2013 3

摘要: B hash 把字符串看成数字插进去 #include<stdio.h> #include<string.h> using namespace std; #define SEED 13331 #define MAXN 2007 #define HASH 10007 int head[HASH]; i 阅读全文

posted @ 2017-07-13 19:39 HelloWorld!--By-MJY 阅读(124) 评论(0) 推荐(0) 编辑

多校2013 2

摘要: A lcm(A,B)显然是循环节 然而仅仅这样不行 还有一点规律 #include <iostream> #include <cstdio> #include <cmath> #include <map> #include <algorithm> #include <cstring> #includ 阅读全文

posted @ 2017-07-13 19:31 HelloWorld!--By-MJY 阅读(121) 评论(0) 推荐(0) 编辑

2017年7月8日

多校 2013 1

摘要: HDU 4602 C 求n 的分解方式 k 出现了几次 先把 n 分解成 n个1 然后考虑 1 k 在边上 2*2^(n-k-1) 2 k 在中间 左边 t1 右边t2 个1 那么就是 2^(t1-1)*2^(t2-1)*(n-k-1) 加起来就是 有些特殊的判断下 #include <iostre 阅读全文

posted @ 2017-07-08 16:04 HelloWorld!--By-MJY 阅读(141) 评论(0) 推荐(0) 编辑

2017年7月4日

2013腾讯编程马拉松初赛第4,5场

摘要: HDU 4520 A 直接模拟 #include <iostream> #include <cstdio> #include <cmath> #include <map> #include <algorithm> #include <cstring> #include <string> #inclu 阅读全文

posted @ 2017-07-04 20:09 HelloWorld!--By-MJY 阅读(135) 评论(0) 推荐(0) 编辑

2017年7月3日

2013腾讯编程马拉松初赛第2场

摘要: A HDU 4510 直接模拟 #include <iostream> #include <cstdio> #include <cmath> #include <map> #include <algorithm> #include <cstring> #include <string> #inclu 阅读全文

posted @ 2017-07-03 15:56 HelloWorld!--By-MJY 阅读(140) 评论(0) 推荐(0) 编辑

2017年7月2日

codeforces 的20道C题

摘要: A - Warrior and Archer CodeForces - 595C n 偶数 然后n个数字 A B 轮流取一个 A让差变小B让差变大 直到最后2 个 求的是最小剩下的差 最后剩下的 L R 相距 n/2 求一下最小的就行 #include <iostream> #include <cs 阅读全文

posted @ 2017-07-02 19:58 HelloWorld!--By-MJY 阅读(502) 评论(0) 推荐(0) 编辑

2013腾讯编程马拉松初赛第0,1场

摘要: HDU4500 直接模拟 #include <iostream> #include <cstdio> #include <cmath> #include <map> #include <algorithm> #include <cstring> #include <string> #include< 阅读全文

posted @ 2017-07-02 19:08 HelloWorld!--By-MJY 阅读(166) 评论(0) 推荐(0) 编辑

2017年6月27日

codeforces 821

摘要: A 给你一个n*n矩阵 判断不是1的数 能不能有 同一行 + 同一列的 一个数 相加得到 暴力下就行 #include<stdio.h> #include<string.h> #include<map> #include<algorithm> using namespace std; #define 阅读全文

posted @ 2017-06-27 15:26 HelloWorld!--By-MJY 阅读(224) 评论(0) 推荐(0) 编辑

2017年6月24日

codefoeces 610 C

摘要: H - Harmony Analysis 给你一个k 求一个由 * + 组成的 2^k *2^k 的矩阵 条件是 任意两行 对应项乘积的和 为0 + 为 +1 * 为-1 + ++ +* ++++ +*+* ++** +**+ 右上角 = 左下角 = 左上角 右下角 =左上角取反 #include< 阅读全文

posted @ 2017-06-24 09:56 HelloWorld!--By-MJY 阅读(177) 评论(0) 推荐(0) 编辑

2017年6月23日

一些数学题目

摘要: https://vjudge.net/contest/167937#overview UVA10006 给你一个数 判断是不是 rmichael 数 定义是 能通过a ^n %n =a 但是不是素数 快速幂 好像一定要深搜的 普通的超时了 #include <iostream> #include < 阅读全文

posted @ 2017-06-23 21:34 HelloWorld!--By-MJY 阅读(131) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 22 下一页

导航