
暴力
文章平均质量分 84
snowy_smile
终于在ICPC World Final里拿到了气球!
再努力一点吧,坚持下去吧,梦想是会实现的! 人生会有低谷,但我更相信,未来也会有更多梦想能够实现~
展开
-
【HDU6196 2017 ACM ICPC Asia Regional Shenyang Online C】【爆搜 + 剪枝】happy happy happy 爸爸儿子轮流两头取数 爸爸想输且输少
happy happy happyTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 143 Accepted Submission(s): 22Problem DescriptionToday, Bob原创 2017-09-11 09:53:35 · 2061 阅读 · 15 评论 -
【Manthan, Codefest 16D】【暴力+去重or特判】Fibonacci-ish n个数组成最长斐波那契数列的长度
D. Fibonacci-ishtime limit per test3 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputYash has recently learnt about the Fibonacci sequenc原创 2016-02-28 15:27:05 · 819 阅读 · 0 评论 -
【Manthan, Codefest 16B】【二分 or 递推暴力】A Trivial Problem 输出阶乘为m的所有数
B. A Trivial Problemtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputMr. Santa asks all the great programmers原创 2016-02-28 13:32:45 · 619 阅读 · 0 评论 -
【Codeforces Round 340 (Div 2)C】【暴力排序枚举】Watering Flowers 2个灌溉器灌溉所有点最小的rr+RR
C. Watering Flowerstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA flowerbed has many flowers and two foun原创 2016-02-28 13:03:25 · 736 阅读 · 0 评论 -
【VK Cup 2016 - Round 1 (Div 2 Edition)A】【水题 暴力】Bear and Reverse Radewoosh 做题由易到难分高有难到易分高
A. Bear and Reverse Radewooshtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLimak and Radewoosh are going原创 2016-04-04 18:01:49 · 643 阅读 · 0 评论 -
【April Fools Day Contest 2016B】【暴力】Scrambled 至少满足其一 模a余b
B. Scrambledtime limit per test2 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputBtoh yuo adn yuor roomatme lhoate wianshg diseh原创 2016-04-04 16:42:52 · 612 阅读 · 0 评论 -
【IndiaHacks 2016 - Online Edition (Div 1 + Div 2) ErrichtoC】【脑洞 好题 讨论?NO!暴力】Bear and Up-Down 多少种一次交
Bear and Up-Downtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe life goes up and down, just like nice原创 2016-03-21 09:46:48 · 758 阅读 · 0 评论 -
【IndiaHacks 2016 - Online Edition (Div 1 + Div 2) ErrichtoB】【爆搜dfs】 Bear and Compressing 字符串变换前2位变
Bear and Compressingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLimak is a little polar bear. Polar be原创 2016-03-21 09:23:38 · 661 阅读 · 0 评论 -
【Codeforces Round 339 (Div 2)D】【暴力 贪心 二分】Skills 最高技能人数乘cm+最低技能乘cf权值最大
D. Skillstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLesha plays the recently published new version of原创 2016-03-08 19:21:45 · 748 阅读 · 0 评论 -
【Codeforces Round 339 (Div 2)A】【水题 暴力】 LinkCut Tree 输出[l,r]范围内所有的k的幂数
Link/Cut Treetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputProgrammer Rostislav got seriously interested原创 2016-03-08 19:18:57 · 878 阅读 · 0 评论 -
【HDU5635 BestCoder Round 74 (div2)A】【贪心 暴力】LCP Array 相邻后缀最大相同前缀 输出字符串方案数
LCP ArrayTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1176 Accepted Submission(s): 328Problem DescriptionPeter has a string原创 2016-03-08 19:11:47 · 450 阅读 · 0 评论 -
【Codeforces Round 345 (Div 1) B】【暴力 双指针】Image Preview 看照片、阅读、移动、反转最多看照片数
Beautiful Paintingstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n pictures delivered for the n原创 2016-03-08 19:05:23 · 639 阅读 · 0 评论 -
【ZOJ3935 The 16th Zhejiang University Programming ContestI】【暴力 水题】2016 找寻triangular-hexagonal-leap y
2016Time Limit: 2 Seconds Memory Limit: 65536 KBIn mathematics, a polygonal number is a number represented as dots or pebbles arranged in the shape of a regular polygon. The dots are thou原创 2016-04-12 13:13:14 · 933 阅读 · 1 评论 -
【ZOJ3941 The 13th Zhejiang Provincial Collegiate Programming ContestF】【贪心 暴力】Kpop Music Party n段part
Kpop Music PartyTime Limit: 2 Seconds Memory Limit: 65536 KB Marjar University often hosts Kpop music festival. A Kpop music festival will last several days. During a Kpop festival, t原创 2016-04-26 18:45:58 · 1114 阅读 · 0 评论 -
【GoogleCodeJam2016A】【暴力】Counting Sheep x的倍数从小向大增加直到出现0~9所有数的最小倍增终点
Counting SheepThis contest is open for practice. You can try every problem as many times as you like, though we won't keep track of which problems you solve. Read the Quick-Start Guide to ge原创 2016-04-10 12:27:43 · 1271 阅读 · 0 评论 -
【HDU6152 2017中国大学生程序设计竞赛 - 网络选拔赛 C】【暴力 鸽巢原理】Friend-Graph
Friend-GraphTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 380 Accepted Submission(s): 196Problem DescriptionIt is well kno原创 2017-08-19 20:35:45 · 768 阅读 · 0 评论 -
【ZOJ3948 The 17th Zhejiang University Programming Contest A】【暴力 or 讨论】Marjar Cola 瓶盖饮料换可乐
Marjar ColaTime Limit: 1 Second Memory Limit: 65536 KBMarjar Cola is on sale now! In order to attract more customers, Edward, the boss of Marjar Company, decides to launch a promotion: If原创 2017-04-12 17:01:10 · 1700 阅读 · 0 评论 -
【Intel Code Challenge Elimination Round (Div1 + Div2, combined) D】【贪心 暴力 SET】Generating Sets n个不同的x变
D. Generating Setstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a set Y of n distinct posi原创 2016-10-03 08:46:51 · 659 阅读 · 0 评论 -
【Intel Code Challenge Elimination Round (Div1 + Div2, combined) A】【暴力or讨论】Broken Clock 把给定时间修改到目标时间制
A. Broken Clocktime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a broken clock. You know, that原创 2016-10-03 08:44:01 · 739 阅读 · 0 评论 -
【HDU5583 2015上海赛区K】【暴力合并】Kingdom of Black and White 连续01串权值贡献为len^2最多改变一次最大权值
Kingdom of Black and WhiteTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 93 Accepted Submission(s): 41Problem DescriptionIn原创 2015-11-29 18:44:12 · 1949 阅读 · 0 评论 -
【HDU5745 2016 Multi-University Training Contest 2L】【bitset做法or暴力】La Vie en rose 目标串多少子串可以被原始串做相邻交换得到
La Vie en roseTime Limit: 7000/3500 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1938 Accepted Submission(s): 655Problem DescriptionProfessor Zhang原创 2016-07-28 10:42:46 · 862 阅读 · 0 评论 -
【HDU5735 2016 Multi-University Training Contest 2B】【暴力做法 + 折半法】Born Slippy 祖先链的最大运算权值
Born SlippyTime Limit: 12000/6000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 1049 Accepted Submission(s): 307Problem DescriptionProfessor Zhang原创 2016-07-28 09:51:44 · 721 阅读 · 2 评论 -
【Codeforces Round 364 (Div 2)F】【暴力 双连通分量求桥】Break Up n点m边最多割2边最小成本使得S与T不联通
F. Break Uptime limit per test3 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAgain, there are hard times in Berland! Many to原创 2016-07-26 08:55:08 · 1827 阅读 · 0 评论 -
【2016杭电女生赛1005】【暴力 bfs or dfs or 模拟】girlcat 数女生数和猫咪数
#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;#define MS(x,y) memset(x,y,sizeof(x))#define MC(x,y) memcpy(x原创 2016-05-22 22:35:50 · 1108 阅读 · 0 评论 -
【2016杭电女生赛1003】【暴力】Luck Competition 选数平均数乘2除3 小且最接近的数
#include#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;void fre() { freopen("c://test//input.in", "r", stdin原创 2016-05-22 21:34:20 · 1180 阅读 · 0 评论 -
【GoogleCodeJam2016C】【java 二进制枚举爆搜】Coin Jam n位01数转变为n进制
import java.util.*;import java.math.*;public class Main{ static Scanner cin = new Scanner(System.in); public static void main(String[] args) { //预处理素数 int prime[] = { 2,3,5,7,11,13,17,19,23,原创 2016-04-10 12:29:38 · 970 阅读 · 0 评论 -
【2015-2016 XVI Open CupC】【暴力】Constant Ratio 等差数列前若干项恰好为n
C. Constant Ratiotime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputGiven an integer n, find out number of ways to represent it as the sum of two or more integers ai with the next property: ratio原创 2016-03-08 18:45:01 · 533 阅读 · 0 评论 -
【Codeforces Round 262 (Div 2)B】【暴力枚举】Little Dima and Equation b乘数位之和的a次方+c=数字
Little Dima and Equationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLittle Dima misbehaved during a mat原创 2016-03-19 12:36:50 · 567 阅读 · 0 评论 -
【Educational Codeforces Round 6B】【暴力】Grandfather Dovlet’s calculator 区间所有数的火柴总成本
B. Grandfather Dovlet’s calculatortime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputOnce Max found an electroni原创 2016-03-01 18:18:39 · 669 阅读 · 0 评论 -
【Codeforces Round 269 (Div 2)C】【暴力】MUH and Sticks 纸牌搭楼n张牌恰好搭楼数
C. MUH and House of Cardstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolar bears Menshykov and Uslada fro原创 2015-12-11 09:07:15 · 669 阅读 · 0 评论 -
【HDU5510 2015沈阳赛区B】【KMP or strstr for循环剪枝】Bazinga 循环处思维灵活转化 时间复杂度均摊思想
BazingaTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 73 Accepted Submission(s): 28Problem DescriptionLadies and gentlemen, plea原创 2015-10-31 18:10:14 · 1943 阅读 · 1 评论 -
【HDU5540 2015 CCPC 南阳国赛A】【水题】Secrete Master Plan 矩形旋转
#includeint a[10],b[10];bool check(){ for(int i=0;i<4;i++) { int j; for(j=0;j<4;j++)if(a[(i+j)%4]!=b[j])break; if(j==4)return 1; } return 0;}int main(){ int casenum,casei; scanf("%d"原创 2015-11-02 00:27:48 · 860 阅读 · 0 评论 -
【ASC45D】【构造 电阻网络法+暴力冲精度法+比例转换法】醉汉走路二分叉 回家概率恰为p/q
【ASC45D】【构造】方法一之电阻网络法 WIKI Gambler's ruin#include #include#include#include#include#include#include#include#include#include #include#include#include#define MS(x,y) memset(x,y,sizeof(x))原创 2015-10-31 07:32:33 · 1513 阅读 · 0 评论 -
【2015-2016 ACM-ICPC, NEERC, Northern Subregional Contest L】【水题】Lucky Chances (点,方向)所经权值都严格小
#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;#define MS(x,y) memset(x,y,sizeof(x))#define MC(x,y) memcpy(x原创 2015-11-15 22:31:47 · 954 阅读 · 0 评论 -
【Codeforces Round 323 (Div 2)D】【暴力 脑洞 插入贡献思想】Once Again... 循环节重复T次后的LIS
D. Once Again...time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an array of positive integers a原创 2015-11-13 11:23:36 · 1187 阅读 · 0 评论 -
【Codeforces Round #327 (Div. 2) B】 Rebranding 字符变换 同类型打标记
B. Rebrandingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe name of one small but proud corporation con原创 2015-10-29 09:13:37 · 684 阅读 · 0 评论 -
【Code Forces 320D】【贪心+暴力】 "Or" Game 数列乘k次x后求最大or值
数列乘k次x后求最大or值原创 2015-09-17 15:34:00 · 1790 阅读 · 0 评论 -
【2015-2016 ACM-ICPC, NEERC, Southern Subregional Contest B】【暴力双排序】Layer Cake 若干矩形 选择相同长和宽的最大体积
B. Layer Caketime limit per test6 secondsmemory limit per test512 megabytesinputstandard inputoutputstandard outputDasha decided to bake a big and tasty layer cake. In order to do that she went shopping and bought n rectangular cake layers. The length原创 2015-11-08 12:44:04 · 815 阅读 · 0 评论 -
【Codeforces Round 329 (Div 2) A】【暴力枚举】2Char 选单词最多只含2字符
#include#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;void fre(){freopen("c://test//input.in","r",stdin);freopen("c:原创 2015-11-06 21:10:08 · 427 阅读 · 0 评论 -
【UKIEPC2015 M】【暴力匹配+SET去重】Milestone Counter 匀速行驶 合法的里程碑起点
#include #include#include#include#include#include#include#includeusing namespace std;typedef long long LL;const int N=1e3+10;int n,m;LL t[N],a[N],d[N],b[N];LL gcd(LL x,LL y){ return原创 2015-11-03 17:41:02 · 698 阅读 · 0 评论