- 博客(15)
- 收藏
- 关注
原创 结构体排序
Excel可以对一组纪录按任意指定列排序。现请你编写程序实现类似功能。INPUT测试输入包含若干测试用例。每个测试用例的第1行包含两个整数 N (行,每行包含一条学生纪录。每条学生纪录由学号(6位数字,同组测试中没有重复的学号)、姓名(不超过8位且不包含空格的字符串)、成绩(闭区间0,1000,100内的整数)组成,每个项目间用1个空格隔开。当读到 N=0 时,全部输入结束,相应的
2017-07-25 20:17:10
257
原创 CodeForces 185A Plant
http://codeforces.com/problemset/problem/185/APlantDwarfs have planted a very interesting plant, which is a triangle directed “upwards”. This plant has an amusing feature. After one year a triangle pla
2016-08-12 20:20:11
449
原创 POJ 2385 Apple Catching
http://poj.org/problem?id=2385Apple CatchingDescriptionIt is a little known fact that cows love apples. Farmer John has two apple trees (which are conveniently numbered 1 and 2) in his field, each full
2016-08-10 16:11:53
237
原创 HDU 1501 Zipper
http://acm.hdu.edu.cn/showproblem.php?pid=1501ZipperProblem Description Given three strings, you are to determine whether the third string can be formed by combining the characters in the first two st
2016-08-10 15:58:44
201
原创 URAL 1114 Boxes
http://acm.timus.ru/problem.aspx?space=1&num=1114BoxesN boxes are lined up in a sequence (1 ≤ N ≤ 20). You have A red balls and B blue balls (0 ≤ A ≤ 15, 0 ≤ B ≤ 15). The red balls (and the blue ones)
2016-08-10 15:26:11
253
原创 HDU 2045不容易系列之(3)—— LELE的RPG难题
http://acm.hdu.edu.cn/showproblem.php?pid=2045不容易系列之(3)—— LELE的RPG难题Problem Description 人称“AC女之杀手”的超级偶像LELE最近忽然玩起了深沉,这可急坏了众多“Cole”(LELE的粉丝,即”可乐”),经过多方打探,某资深Cole终于知道了原因,原来,LELE最近研究起了著名的RPG难题: 有排成一行的n个
2016-08-10 15:01:29
304
原创 HDU 2044 一只小蜜蜂...
http://acm.hdu.edu.cn/showproblem.php?pid=2044一只小蜜蜂…Problem Description 有一只经过训练的蜜蜂只能爬向右侧相邻的蜂房,不能反向爬行。请编程计算蜜蜂从蜂房a爬到蜂房b的可能路线数。 其中,蜂房的结构如下所示。Input 输入数据的第一行是一个整数N,表示测试实例的个数,然后是N 行数据,每行包含两个整数a和b(0 < a <
2016-08-10 14:47:17
191
原创 发工资咯:)
http://acm.hdu.edu.cn/showproblem.php?pid=2021发工资咯:)Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 50607 Accepted Submission(s): 27609Probl
2016-07-15 16:36:15
392
原创 King's Phone
http://acm.hdu.edu.cn/showproblem.php?pid=5641King’s PhoneTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 2883 Accepted Submission(s): 657Pr
2016-07-15 16:18:18
220
原创 CA Loves Stick
http://acm.hdu.edu.cn/showproblem.php?pid=5655CA Loves StickTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 2118 Accepted Submission(s): 6
2016-07-15 10:58:27
238
原创 DZY Loves Balls
http://acm.hdu.edu.cn/showproblem.php?pid=5645DZY Loves BallsTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 1062 Accepted Submission(s):
2016-07-15 10:33:47
411
原创 King's Cake
http://acm.hdu.edu.cn/showproblem.php?pid=5640King’s CakeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1094 Accepted Submission(s): 762Pro
2016-07-15 10:11:06
234
原创 第二天
今天有一个题的sort和选择排序,我认为两个都是可以的,但选择排序却总是有点问题,不明白为什么。#include<stdio.h>#include<iostream>#include<algorithm>#define N 1000using namespace std;bool cmp(int a,int b){ return a>b;}int main(){
2016-07-12 21:05:40
285
3
原创 第一天
对于今天一天的做题,表示很不开心,感觉做的都挺对的,然而就是过不去。 有一些细节方面的东西还是不能很好地运用。第一个题,我认为思路是对的,但有个函数就是写不出来。第三题的那个思路都对了,就是没看清题,还是练题太少。倒数第二道,其实并不清楚哪错了。最后一个题思路也是对的而且没问题,但并不知道题是要一直可以进行下去的,导致提交了很多次都没成功。
2016-07-11 21:15:55
210
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人