思维
neuike
这个作者很懒,什么都没留下…
展开
-
【模拟+思维】hdu5200 Trees
http://acm.hdu.edu.cn/showproblem.php?pid=5200TreesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1285 Accepted Submission(s): 400原创 2015-12-20 17:32:15 · 577 阅读 · 0 评论 -
poj3761
Bubble Sort Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 2708 Accepted: 922 DescriptionBubble sort is a simple sorting algorithm. It works by repeatedly stepping through the l原创 2016-07-31 09:35:49 · 266 阅读 · 0 评论 -
uva10881
本题目是蚂蚁的相遇问题,蚂蚁相遇以后就反向,输出蚂蚁t秒后的次序。这里用ne数组存下新状态的一切信息。注意交换的次序即可。因为所有蚂蚁的相对位置不变,所以当前的相对位置也不变。num存着所有的新位置的相对次序,即当前ne[i].loc是第几大的数字呢?num里面将这个次序分别存下来order[i]里面则表示 大小顺序序号为i的数据将在第order[i]个输出之后ne数组又依照数原创 2016-06-17 01:04:50 · 278 阅读 · 0 评论 -
Codeforces Beta Round #94 (Div. 1 Only)String
B. String time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output One day in the IT lesson Anna and Maria learned about the lexicographic order.St原创 2016-07-22 14:11:37 · 300 阅读 · 0 评论 -
zoj1115
Digital RootsTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice ZOJ 1115Appoint description: System Crawler (2016-04-19)Description原创 2016-04-22 18:41:08 · 302 阅读 · 0 评论 -
Bicycle Race
Bicycle Racetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMaria participates in a bicycle race.The sp原创 2016-04-01 11:18:43 · 423 阅读 · 0 评论 -
New Reform
E. New Reformtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputBerland has n cities connected by m bidirectio原创 2016-04-01 11:04:15 · 464 阅读 · 0 评论 -
【思维+枚举】wust1266 gcd和lcm
1266: gcd和lcmTime Limit: 1 Sec Memory Limit: 128 MB 64bit IO Format: %lldSubmitted: 155 Accepted: 35[Submit][Status][Web Board]Description已知a,b的最大公约数为x,也即gcd(a,b)=x; a,b的最小公倍数为y原创 2015-12-25 15:00:25 · 739 阅读 · 0 评论 -
poj 2785
4 Values whose Sum is 0Time Limit: 15000MS Memory Limit: 228000KTotal Submissions: 18686 Accepted: 5546Case Time Limit: 5000MSDescriptionThe SUM problem can原创 2016-01-23 17:04:00 · 212 阅读 · 0 评论 -
Paint Chainhdu3980
Paint ChainTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1741 Accepted Submission(s): 595Problem Description Aekdycoin and abcdxyzk are p原创 2016-08-06 19:44:25 · 227 阅读 · 0 评论