----模拟
Wang_128
这个作者很懒,什么都没留下…
展开
-
南京理工大学第八届程序设计大赛-琪露诺的算术教室
琪露诺的算术教室Time Limit: 1000msMemory Limit: 65536KBDescription给出一个非负整数A,将这个数字的最低位移动到最高位(原来的最高位变为次高位,次低位变成最低位),得到非负整数B,发现B恰好是A的k倍。现给出A的最低位的值n,和倍数k,求最小的非负整数B。Input第一行输入一个正整数T(1原创 2016-04-21 18:35:11 · 798 阅读 · 0 评论 -
CodeForces 24B-F1 Champions
F1 Championstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputFormula One championship consists of series of原创 2016-06-02 16:30:56 · 766 阅读 · 0 评论 -
HDU5912-Fraction
Fraction Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)原创 2016-10-05 16:35:14 · 332 阅读 · 0 评论 -
ACdream1073-雷霆战机
雷霆战机Time Limit: 2000/1000MS (Java/Others) Memory Limit: 65536/32768KB (Java/Others)Submit Statistic Next ProblemProblem Description风风最近迷上了一个打飞机游戏——《雷霆战机》,战机分为白二星、绿三星、蓝四星、紫五星,四种品质。当然,原创 2016-12-01 20:47:45 · 484 阅读 · 0 评论 -
Codeforces 749C-voting
Votingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n employees in Alternative Cake Manufacturi原创 2016-12-28 22:12:41 · 269 阅读 · 0 评论 -
HDU3368-Reversi
Reversi Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)原创 2017-01-16 13:14:58 · 335 阅读 · 0 评论 -
HDU1409-Is It a Number
Is It a Number Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)原创 2017-02-07 18:42:20 · 323 阅读 · 0 评论 -
HDU1413-文件系统
文件系统 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)原创 2017-02-07 20:03:31 · 498 阅读 · 0 评论 -
HDU3363-Ice-sugar Gourd
Ice-sugar Gourd Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)原创 2017-01-17 10:01:39 · 506 阅读 · 0 评论 -
HDU2275-Kiki & Little Kiki 1
Kiki & Little Kiki 1 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)原创 2017-01-21 16:49:30 · 467 阅读 · 0 评论 -
团体程序设计天梯赛L2-007 家庭房产
L2-007. 家庭房产时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越给定每个人的家庭成员和其自己名下的房产,请你统计出每个家庭的人口数、人均房产面积及房产套数。输入格式:输入第一行原创 2017-03-01 17:55:56 · 299 阅读 · 0 评论 -
团体程序设计天梯赛L2-009 抢红包
L2-009. 抢红包时间限制300 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越没有人没抢过红包吧…… 这里给出N个人之间互相发红包、抢红包的记录,请你统计一下他们抢红包的收获。输入格式:输入第原创 2017-03-01 18:00:36 · 337 阅读 · 0 评论 -
团体程序设计天梯赛L2-012 关于堆的判断
L2-012. 关于堆的判断时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越将一系列给定数字顺序插入一个初始为空的小顶堆H[]。随后判断一系列相关命题是否为真。命题分下列几种:“x is原创 2017-03-01 18:04:34 · 296 阅读 · 0 评论 -
团体程序设计天梯赛L2-015 互评成绩
L2-015. 互评成绩时间限制250 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越学生互评作业的简单规则是这样定的:每个人的作业会被k个同学评审,得到k个成绩。系统需要去掉一个最高分和一个最低分,将剩下的分数取原创 2017-03-01 18:10:26 · 564 阅读 · 0 评论 -
团体程序设计天梯赛L2-016 愿天下有情人都是失散多年的兄妹
L2-016. 愿天下有情人都是失散多年的兄妹时间限制200 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越呵呵。大家都知道五服以内不得通婚,即两个人最近的共同祖先如果在五代以内(即本人、父母、祖父母、曾祖父母、高原创 2017-03-01 18:11:47 · 449 阅读 · 0 评论 -
Codeforces 758C-Unfair Poll
Unfair Polltime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputOn the Literature lesson Sergei noticed an awful原创 2017-01-22 21:22:44 · 582 阅读 · 0 评论 -
HDU4350-Card
Card Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)原创 2017-01-23 22:34:14 · 236 阅读 · 0 评论 -
Codeforces 758D-Ability To Convert
Ability To Converttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlexander is learning how to convert numb原创 2017-01-22 21:25:55 · 555 阅读 · 0 评论 -
PAT (Advanced Level) Practise 1008 Elevator
1008. Elevator (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe highest building in our city has only one ele原创 2016-09-06 20:54:38 · 231 阅读 · 0 评论 -
Codeforces 761B-Dasha and friends
Dasha and friendstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputRunning with barriers on the circle track原创 2017-02-01 23:53:56 · 683 阅读 · 0 评论 -
Codeforces 762B-USB vs. PS/2
USB vs. PS/2time limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDue to the increase in the number of students原创 2017-02-01 23:34:11 · 675 阅读 · 0 评论 -
ZOJ3326-An Awful Problem
An Awful ProblemTime Limit: 1 Second Memory Limit: 32768 KBIn order to encourage Hiqivenfin to study math, his mother gave him a sweet candy when the day of the month was a prime number原创 2017-02-03 22:45:55 · 239 阅读 · 0 评论 -
PAT (Advanced Level) Practise 1006 Sign In and Sign Out
1006. Sign In and Sign Out (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueAt the beginning of every day, the fi原创 2017-03-03 21:01:15 · 274 阅读 · 0 评论 -
PAT (Advanced Level) Practise 1010 Radix
1010. Radix (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a pair of positive integers, for example, 6 an原创 2017-03-03 21:24:57 · 255 阅读 · 0 评论 -
PAT (Advanced Level) Practise 1012 The Best Rank
1012. The Best Rank (25)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueTo evaluate the performance of our first yea原创 2017-03-03 21:48:59 · 250 阅读 · 0 评论 -
Codeforces 777B-Game of Credit Cards
Game of Credit Cardstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAfter the fourth season Sherlock and M原创 2017-02-25 21:29:05 · 344 阅读 · 0 评论 -
Codeforces 776A-A Serial Killer
A Serial Killertime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOur beloved detective, Sherlock is currentl原创 2017-02-26 16:15:52 · 330 阅读 · 0 评论 -
PTA 家谱处理
5-27 家谱处理 (30分)人类学研究对于家族很感兴趣,于是研究人员搜集了一些家族的家谱进行研究。实验中,使用计算机处理家谱。为了实现这个目的,研究人员将家谱转换为文本文件。下面为家谱文本文件的实例:John Robert Frank Andrew Nancy David家谱文本文件中,每一行包含一个人的名字。第一行中的名字是这个原创 2017-03-08 23:40:24 · 1153 阅读 · 0 评论 -
PTA 切分表达式——写个tokenizer吧
[先说点出题背景]这个题是为低年级同学、学C语言的同学准备的,因为,对这部分同学,这个题目编写起来略有一点复杂。如果是高年级、学过了正则表达式(Regular Expression)的同学或者学过了Java等OO语言的同学做这个题,应当发现这题比较简单吧。哦,对了,什么是tokenizer?请自行查询解决。反正在此处不应翻译成“令牌解析器”。[正题]四则运算表达式由运算数(原创 2017-03-09 00:35:49 · 975 阅读 · 0 评论 -
Codeforces 761D-Dasha and Very Difficult Problem
Dasha and Very Difficult Problemtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDasha logged into the syst原创 2017-02-02 00:21:30 · 659 阅读 · 0 评论 -
ZOJ3490-String Successor
C - String SuccessorTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%lld & %lluSubmit Status Practice ZOJ 3490DescriptionThe successor to a string can be calculate原创 2016-04-21 17:55:08 · 516 阅读 · 0 评论 -
HDU1237-简单计算器
简单计算器 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)原创 2016-10-02 21:14:16 · 333 阅读 · 0 评论 -
ZOJ3700-Ever Dream
Ever DreamTime Limit: 2 Seconds Memory Limit: 65536 KB"Ever Dream" played by Nightwish is my favorite metal music. The lyric (see Sample Input) of this song is much more like a poem.原创 2017-04-07 00:30:15 · 365 阅读 · 0 评论 -
ZOJ3704-I am Nexus Master!
I am Nexus Master!Time Limit: 2 Seconds Memory Limit: 65536 KBNexusHD.org is a popular PT (Private Tracker) site in Zhejiang University aiming to provide high quality stuff. In order to原创 2017-04-07 00:52:48 · 313 阅读 · 0 评论 -
ZOJ3780-Paint the Grid Again
Paint the Grid AgainTime Limit: 2 Seconds Memory Limit: 65536 KBLeo has a grid with N × N cells. He wants to paint each cell with a specific color (either black or white).Leo has a ma原创 2017-04-07 17:35:34 · 324 阅读 · 0 评论 -
PAT (Advanced Level) Practise 1001 A+B Format
1001. A+B Format (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueCalculate a + b and output the sum in standard原创 2017-03-02 22:37:34 · 238 阅读 · 0 评论 -
团体程序设计天梯赛L2-002 链表去重
L2-002. 链表去重时间限制300 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越给定一个带整数键值的单链表L,本题要求你编写程序,删除那些键值的绝对值有重复的结点。即对任意键值K,只有键值或其绝对值等于K的第原创 2017-03-01 17:46:42 · 325 阅读 · 0 评论 -
ZOJ3601-Unrequited Love
Unrequited LoveTime Limit: 16 Seconds Memory Limit: 131072 KBThere are n single boys and m single girls. Each of them may love none, one or several of other people unrequitedly and one-原创 2017-02-26 21:08:21 · 436 阅读 · 0 评论 -
ZOJ2971-Give Me the Number
Give Me the NumberTime Limit: 2 Seconds Memory Limit: 65536 KBNumbers in English are written down in the following way (only numbers less than 109 are considered). Number abc,def,ghi is原创 2017-04-11 23:36:44 · 321 阅读 · 0 评论 -
团体程序设计天梯赛L1-039 古风排版
L1-039. 古风排版时间限制400 ms内存限制65536 kB代码长度限制8000 B判题程序Standard作者陈越中国的古人写文字,是从右向左竖向排版的。本题就请你编写程序,把一段文字按古风排版。输入格式:输入在第一行给出一个原创 2017-04-12 08:24:04 · 850 阅读 · 0 评论