
暴力
文章平均质量分 81
GKHack
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HDOJ1215 七夕节(暴力 & 筛选法)
七夕节 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 35637 Accepted Submission(s): 11170 Problem Description 七夕节那天,月老来到数字王国,他在城门上原创 2015-09-14 18:36:40 · 1789 阅读 · 1 评论 -
HDOJ5475 An easy problem(暴力 & 线段树)
题目链接:点击打开链接 t组样例,每组第一行给出q, m,q次操作,为1则乘y对m取模,为2则除y对m取模,除的时候保证y在前面乘的操作中出现过。 注意数据范围,直接暴力或者线段树单点更新都可行。 比赛时又t又wa的,4个小时愣是没想出来,这就是陷进一道题的危害,要懂得舍,才会有得!有时候自己把问题想的太麻烦了,明日 加油!为我队鼓气! AC代码(暴力): #inclu原创 2015-09-27 00:33:54 · 1051 阅读 · 0 评论 -
NOJ1007 完美立方(暴力)
完美立方 时间限制(普通/Java) : 1000 MS/ 3000 MS 运行内存限制 : 65536 KByte 总提交 : 4917 测试通过 : 1335 比赛描述 a3 = b3 + c3 + d3为完美立方等式。例如123 = 63 + 83 + 103 。编写一个程序,对任给的正整数N (N≤100),寻找所有的四元组(a,原创 2015-08-14 00:13:28 · 1277 阅读 · 0 评论 -
POJ3080 Blue Jeans(kmp & 暴力)
题目链接:点击打开链接 给你m个字符串,问你最长公共子序列是什么,若长度小于3输出给定字符串,若存在多个最长公共子序列,输出字典序最小的。 kmp:从开头到结尾遍历字符串,每一个新的字符串开头都进行一次kmp,得到长度后跟原先得出的比较,长度长则直接更新,长度相 等则比较字典序。 AC代码: #include "iostream" #include "cstdio" #i原创 2015-10-08 22:00:28 · 1265 阅读 · 0 评论 -
Codeforces Round #324 (Div. 2) 584ABCD题解
题目链接:点击打开链接 A:给你一个n、t,让你输出长度为n且可以整除t的数。 注意到t的范围是1~10,把10特判一下,其他的情况直接输出n个t就好。 AC代码: #include "iostream" #include "cstdio" #include "cstring" #include "algorithm" using namespace std; int n, t;原创 2015-10-10 10:46:34 · 1034 阅读 · 0 评论 -
Testing Round #12 597ABC题解
题目链接: 点击打开链接 A: 给出k, a, b. 问你在[a, b]区间内有多少可以整除k的数. 脑洞题目, 计算此区间长度可以存放k的个数即可. AC代码: #include "iostream" #include "cstdio" #include "cstring" #include "algorithm" using namespace std; typedef lon原创 2015-11-15 09:19:58 · 911 阅读 · 0 评论 -
BestCoder Round #63 (div.2) HDOJ5567 sequence1(暴力)
sequence1 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 132 Accepted Submission(s): 103 Problem Description Given an array a w原创 2015-11-22 11:11:49 · 706 阅读 · 0 评论 -
Codeforces Round #340 (Div. 2) 617D Polyline(暴力)
D. Polyline time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output There are three points marked on the coordinate原创 2016-01-28 10:32:49 · 615 阅读 · 0 评论 -
IndiaHacks 2016 - Online Edition (Div. 1 + Div. 2) 653C Bear and Up-Down(暴力)
C. Bear and Up-Down time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output The life goes up and down, just like ni原创 2016-03-24 11:42:52 · 717 阅读 · 1 评论