ACM_思维题
文章平均质量分 83
雨狮子
这个作者很懒,什么都没留下…
展开
-
codeforces 538 B.Quasi Binary(思维题)
B. Quasi Binarytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA number is called quasibinary if its decim原创 2015-04-28 12:28:32 · 1583 阅读 · 0 评论 -
Codeforces Round #228 (Div. 1) A. Fox and Box Accumulation
A. Fox and Box Accumulationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputFox Ciel has n boxes in her room. They原创 2016-03-17 20:05:01 · 477 阅读 · 0 评论 -
hdu 3183 A Magic Lamp
A Magic LampTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2954 Accepted Submission(s): 1152Problem DescriptionKiki likes trav原创 2016-03-16 22:51:50 · 557 阅读 · 0 评论 -
noj 1059 搬寝室
搬寝室 时间限制(普通/Java) : 1000 MS/ 3000 MS 运行内存限制 : 65536 KByte 总提交 : 1275 测试通过 : 169 比赛描述 换寝室是大家都不愿意碰到的事情,不幸的是,可怜的wwm高中大学都遇到了。 室友们有一个不成文的规定,那就是根据自己的学号选择床号。如果某同学的学号是a,并且有0..k-1一共k张床原创 2016-02-18 00:32:01 · 641 阅读 · 0 评论 -
noj 1052 水王争霸
水王争霸 时间限制(普通/Java) : 1000 MS/ 3000 MS 运行内存限制 : 65536 KByte 总提交 : 182 测试通过 : 87 比赛描述 为了丰富校园网络生活,学校 BBS 举行了一次水王争霸赛。比赛开始后,选手们疯狂灌水,都想争取到水王这个荣誉称号。但学校的 BBS 是如此的不堪一击,才 1e-3 秒就超原创 2016-02-17 16:48:47 · 791 阅读 · 0 评论 -
Codeforces Round #249 (Div. 2) (模拟)
C. Cardiogramtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn this problem, your task is to use ASCII graphics to p原创 2015-08-17 23:56:44 · 694 阅读 · 0 评论 -
CSU 1217 奇数个的那个数(异或)
1217: 奇数个的那个数Time Limit: 2 Sec Memory Limit: 1 MBSubmit: 523 Solved: 120[Submit][Status][Web Board]Description给定些数字,这些数中只有一个数出现了奇数次,找出这个数。Input每组数据第一行n表示数字个数,1 接下来n行每行一个32位原创 2015-08-17 19:31:18 · 1001 阅读 · 0 评论 -
Codeforces Beta Round #34 (Div. 2) C. Page Numbers
C. Page Numberstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output«Bersoft» company is working on a new version of its原创 2015-08-31 22:50:00 · 932 阅读 · 0 评论 -
Codeforces Round #313 (Div. 2) C. Gerald's Hexagon(补大三角形)
C. Gerald's Hexagontime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputGerald got a very curious hexagon for his birthda原创 2015-07-23 16:04:44 · 906 阅读 · 0 评论 -
Codeforces Round #105 (Div. 2) C. Terse princess
C. Terse princesstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard output«Next please», — the princess called and cast an es原创 2015-08-14 11:15:53 · 752 阅读 · 0 评论 -
poj 2945 Find the Clones (map+string,hash思维)
Find the ClonesTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 7498 Accepted: 2780DescriptionDoubleville, a small town in Texas, was attacked by the ali原创 2015-08-14 23:02:02 · 814 阅读 · 0 评论 -
The 2014 ACM-ICPC Asia Regional Contest Xi'an Site K ast Defence
ProblemK. Last DefenceDescriptionGiven two integersA and B. Sequence S is defined as follow:• S0 = A• S1 = B• Si = |Si−1 −Si−2| for i ≥ 2Count the number ofdistinct numbe原创 2015-08-28 20:07:06 · 1003 阅读 · 0 评论 -
Codeforces Round #200 (Div. 2)D. Alternating Current (堆栈)
D. Alternating Currenttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMad scientist Mike has just finished constructi原创 2015-08-13 13:12:41 · 701 阅读 · 0 评论 -
Codeforces Round #200 (Div. 2) C. Rational Resistance(脑洞思维)
C. Rational Resistancetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMad scientist Mike is building a time machine i原创 2015-08-12 22:27:20 · 782 阅读 · 0 评论 -
UVA onlinejudge 11401 - Triangle Counting
题目链接:https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2396题目大意:(这题不好复制过来,就简单说一下题意)输入整数n,从1-n数字中取能构成三角形的三个数,问能得到多少个不同的三角形(不同是指至少有一条边不等)。Input5原创 2015-08-12 22:06:04 · 685 阅读 · 0 评论 -
Codeforces Round #105 (Div. 2) B. Escape
B. Escapetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe princess is going to escape the dragon's cave, and she原创 2015-08-11 15:08:39 · 907 阅读 · 0 评论 -
hdu 5112 A Curious Matt (java,快速输入)
A Curious MattTime Limit: 2000/2000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 2397 Accepted Submission(s): 1355Problem DescriptionThere is a cu原创 2017-04-05 13:55:37 · 490 阅读 · 0 评论