摘要: "hdu1247" Hat’s Words Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 20276 Accepted Submission( 阅读全文
posted @ 2019-05-01 18:03 谁知道你啊啊啊 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 线性素数筛+欧拉线性筛(证明) 线性素数筛 c++ int prime[MAXN], tag[MAXN]; void Get_Prime() { Mem0(tag); int cnt = 0; for(int i = 2;i 若x为质数,则phi[x] = x 1 若x%prime[j] == 0, 阅读全文
posted @ 2019-05-01 13:49 谁知道你啊啊啊 阅读(323) 评论(0) 推荐(0) 编辑
摘要: "dp 2019南昌网络赛B Match Stick Game" Xiao Ming recently indulges in match stick game and he thinks he is good at it. His friend Xiao Jun decides to test h 阅读全文
posted @ 2019-04-29 20:50 谁知道你啊啊啊 阅读(268) 评论(0) 推荐(0) 编辑
摘要: "线段树+单调栈+前缀和 2019icpc南昌网络赛I" Alice has a magic array. She suggests that the value of a interval is equal to the sum of the values in the interval, mul 阅读全文
posted @ 2019-04-27 22:21 谁知道你啊啊啊 阅读(233) 评论(0) 推荐(0) 编辑
摘要: "dp 最大区间和变形 cf 1155D" D. Beautiful Array time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output 阅读全文
posted @ 2019-04-26 20:13 谁知道你啊啊啊 阅读(187) 评论(0) 推荐(0) 编辑
摘要: "思维题 code forces round 551 div.2 D" 题目 D. Serval and Rooted Tree time limit per test 2 seconds memory limit per test 256 megabytes input standard inpu 阅读全文
posted @ 2019-04-21 16:35 谁知道你啊啊啊 阅读(209) 评论(0) 推荐(0) 编辑
摘要: "牛客练习赛43 C" 链接: https://ac.nowcoder.com/acm/contest/548/C 来源:牛客网 题目描述 ​ 立华奏是一个刚刚开始学习 OI 的萌新。 最近,实力强大的 QingyuQingyu 当选了 IODS 9102 的出题人。众所周知, IODS 是一场极其 阅读全文
posted @ 2019-04-07 18:39 谁知道你啊啊啊 阅读(223) 评论(0) 推荐(0) 编辑
摘要: "hdu 1227" 字典树,坑题!!当字典树练手 Problem Description 我们大家经常用google检索信息,但是检索信息的程序是很困难编写的;现在请你编写一个简单的全文检索程序。 问题的描述是这样的:给定一个信息流文件,信息完全有数字组成,数字个数不超过60000个,但也不少于6 阅读全文
posted @ 2019-04-05 19:18 谁知道你啊啊啊 阅读(133) 评论(0) 推荐(0) 编辑
摘要: "hdu 4549 求幂大法、矩阵快速幂、快速幂" 题目 M斐波那契数列 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 6217 Accepte 阅读全文
posted @ 2019-03-29 20:27 谁知道你啊啊啊 阅读(197) 评论(0) 推荐(0) 编辑
摘要: "牛客OI周赛8 提高组A 用水填坑" 题目 链接: https://ac.nowcoder.com/acm/contest/403/A 来源:牛客网 时间限制:C/C++ 2秒,其他语言4秒 空间限制:C/C++ 131072K,其他语言262144K 64bit IO Format: %lld 阅读全文
posted @ 2019-03-28 21:08 谁知道你啊啊啊 阅读(322) 评论(0) 推荐(0) 编辑