摘要: A. Straight «A» time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Noora is a student of one 阅读全文
posted @ 2017-05-21 10:49 暴力都不会的蒟蒻 阅读(534) 评论(0) 推荐(0) 编辑
摘要: 感谢crq兄弟搞了这次校赛,让我认识到了自己傻的时候确实傻的可爱。crq棒棒哒,我们OJ也十年多了,不容易啊。大家能用得上的时候确实要练好基本功啊。 5259: 多项式值统计 Time Limit(Common/Java):1000MS/3000MS Memory Limit:65536KByteT 阅读全文
posted @ 2017-05-20 22:44 暴力都不会的蒟蒻 阅读(1245) 评论(0) 推荐(0) 编辑
摘要: |A∪B∪C|=|A|+|B|+|C|-|A∩B|-|A∩C|-|B∩C|+|A∩B∩C| 这个是集合的容斥,交集差集什么的,这个在概率论经常用到吧 4008: The Leaf Eaters Time Limit(Common/Java):5000MS/15000MS Memory Limit:6 阅读全文
posted @ 2017-05-17 20:54 暴力都不会的蒟蒻 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 粘贴两个特别简单的冒泡排序 2014: Scramble Sort Description In this problem you will be given a series of lists containing both words and numbers. The goal is to so 阅读全文
posted @ 2017-05-17 19:47 暴力都不会的蒟蒻 阅读(253) 评论(0) 推荐(0) 编辑
摘要: A. Lucky Year time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output A. Lucky Year time limit pe 阅读全文
posted @ 2017-05-16 17:32 暴力都不会的蒟蒻 阅读(415) 评论(0) 推荐(0) 编辑
摘要: A. Buying A House time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A. Buying A House time 阅读全文
posted @ 2017-05-15 17:27 暴力都不会的蒟蒻 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 这套题是叉姐出的,好难啊,先扫一遍好像没有会做的题了,仔细一想好像D最容易哎 Super Resolution Accepted : 112 Submit : 178 Time Limit : 1000 MS Memory Limit : 65536 KB Super Resolution Supe 阅读全文
posted @ 2017-05-15 16:11 暴力都不会的蒟蒻 阅读(820) 评论(1) 推荐(0) 编辑
摘要: 这次的前三题挺简单的,可是我做的不快也不对。 A. Bank Robbery time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A 阅读全文
posted @ 2017-05-13 20:17 暴力都不会的蒟蒻 阅读(596) 评论(0) 推荐(0) 编辑
摘要: 欧几里得算法就是我们常说的辗转相除法,辗转相除法可以用来求最大公约数,知道最大公约数还可以求最小公倍数。gcd在好像也有库函数__gcd int Gcd(int a, int b) { while(b != 0) { int r = b; b = a % b; a = r; } return a; 阅读全文
posted @ 2017-05-13 13:11 暴力都不会的蒟蒻 阅读(406) 评论(0) 推荐(0) 编辑
摘要: a+b = a^b + (a&b)<<1 用位运算实现两数相加 int Add(int a,int b) { return b?Add(a^b,(a&b)<<1):a; } 位运算实现两数相减 int MINUS(int a,int b) { return b?MINUS(a^b,((a^b)&b) 阅读全文
posted @ 2017-05-12 17:32 暴力都不会的蒟蒻 阅读(1354) 评论(0) 推荐(0) 编辑
摘要: C. Fountains time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Fountains time limit per 阅读全文
posted @ 2017-05-12 16:33 暴力都不会的蒟蒻 阅读(358) 评论(0) 推荐(1) 编辑
摘要: D. Field expansion time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output D. Field expansion tim 阅读全文
posted @ 2017-05-12 16:07 暴力都不会的蒟蒻 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 我从来没想过自己可以被支配的这么惨,大神讲这个场不容易掉分的啊 A. Carrot Cakes time limit per test 1 second memory limit per test 256 megabytes input standard input output standard 阅读全文
posted @ 2017-05-12 05:43 暴力都不会的蒟蒻 阅读(366) 评论(0) 推荐(0) 编辑
摘要: D. Dynamic Problem Scoring time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Dynamic Pr 阅读全文
posted @ 2017-05-11 23:24 暴力都不会的蒟蒻 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 4689: Sawtooth Time Limit(Common/Java):1000MS/3000MS Memory Limit:65536KByteTotal Submit: 26 Accepted:8 Description 给予一条直线,最多可以将一个无限大平面分为两块,而两条直线,最多可以 阅读全文
posted @ 2017-05-11 23:12 暴力都不会的蒟蒻 阅读(315) 评论(0) 推荐(0) 编辑
摘要: D - Throwing cards away I Given is an ordered deck of n cards numbered 1 to n with card 1 at the top and card n at the bottom. The following operation 阅读全文
posted @ 2017-05-11 21:35 暴力都不会的蒟蒻 阅读(261) 评论(0) 推荐(0) 编辑
摘要: F - Compound Words You are to find all the two-word compound words in a dictionary. A two-word compound word is a word in the dictionary that is the c 阅读全文
posted @ 2017-05-11 21:25 暴力都不会的蒟蒻 阅读(266) 评论(0) 推荐(0) 编辑
摘要: 3134: 渊子赛马修改版 Time Limit(Common/Java):1000MS/3000MS Memory Limit:65536KByteTotal Submit: 458 Accepted:148 Description 赛马是一古老的游戏,早在公元前四世纪的中国,处在诸侯割据的状态, 阅读全文
posted @ 2017-05-11 20:36 暴力都不会的蒟蒻 阅读(313) 评论(0) 推荐(0) 编辑
摘要: 5065: 最长连续子序列 Time Limit(Common/Java):1000MS/3000MS Memory Limit:65536KByteTotal Submit: 140 Accepted:29 Description 给定一系列非负整数,求最长的连续子序列,使其和是7的倍数。 Inp 阅读全文
posted @ 2017-05-11 20:29 暴力都不会的蒟蒻 阅读(553) 评论(0) 推荐(0) 编辑
摘要: Largest Rectangle in a Histogram Largest Rectangle in a Histogram Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 21708 Accepted: 7003 Desc 阅读全文
posted @ 2017-05-10 12:09 暴力都不会的蒟蒻 阅读(173) 评论(0) 推荐(0) 编辑