自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 收藏
  • 关注

原创 2021-11-02快速排序

#自定义排序规则 private void quickSortNums(String []strNums, int l, int r) { if(l >= r) return; int low = l, heigh = r; String strTemp = strNums[l]; while (low < heigh){ while (low < heigh && (strTemp.

2021-11-02 15:07:44 62

原创 蛤玮准备礼物

蛤玮的妹子要过生日了,经过千挑万选,蛤玮决定给妹子买一盒水彩铅笔,然而卖多少个才合适呢.机智的蛤玮决定数一数今天是妹子出生的第多少天,然后就买那么多根铅笔.给出蛤玮妹子的生日和今天的日期,求蛤玮一共需要买多少. 注意:生日当天算第0天. InputT(1<=T<=1000),表示数据组数.每组数据一行y1,m1,d1,y2,m2,d2,其中y1,m1,d1表示妹子生日的年月日,y2,m2,d2表

2017-04-10 21:49:11 253 1

原创 Bug Hunt UVA - 1596

#include <bits/stdc++.h>#define ll long long#define INF 0x3f3f3f3f#define mem(shuzu,value) memset(shuzu,value,sizeof shuzu)using namespace std;const int M=10000+100;map<string,ll>Arrays;string st

2017-03-15 13:55:17 280

原创 UVA12100 Printer Queue

#include <bits/stdc++.h>#define ll long long#define INF 0x3f3f3f3f#define mem(shuzu,value) memset(shuzu,value,sizeof shuzu)using namespace std;const int M=800000+100;struct Job{ int xuhao;

2017-03-12 17:16:03 221

原创 Wolf and Rabbit

Problem Description There is a hill with n holes around. The holes are signed from 0 to n-1.A rabbit must hide in one of the holes. A wolf searches the rabbit in anticlockwise order. The first hole he

2016-11-23 21:35:18 198

原创 The area

Ignatius bought a land last week, but he didn’t know the area of the land because the land is enclosed by a parabola and a straight line. The picture below shows the area. Now given all the intersectan

2016-11-19 20:04:55 205

原创 1.3.6 考试排名 hdu

C++编程考试使用的实时提交系统,具有即时获得成绩排名的特点。它的功能是怎么实现的呢? 我们做好了题目的解答,提交之后,要么“AC”,要么错误,不管怎样错法,总是给你记上一笔,表明你曾经有过一次错误提交,因而当你一旦提交该题“AC”后,就要与你算一算帐了,总共该题错误提交了几回。虽然你在题数上,大步地跃上了一个台阶,但是在耗时上要摊上你共花去的时间。特别是,曾经有过的错误提交,每次都要摊上一定的单

2016-11-17 20:00:04 239

原创 最短路 hdu2544

Problem Description 在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从商店运回到赛场的时候,却是非常累的!所以现在他们想要寻找最短的从商店到赛场的路线,你可以帮助他们吗?Input 输入包括多组数据。每组数据第一行是两个整数N、M(N<=100,M<=10000),N表示成都的大街上有几个路口,标号为1的路口是商店所在

2016-11-17 16:02:14 200

原创 Bone Collector

Problem Description Many years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as dog’s , cow’s , also he went to the grave …

2016-11-17 15:50:59 359

原创 Tempter of the Bone

Description The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel the ground sinking. He realized th

2016-11-17 15:35:14 181

原创 计算球体积

根据输入的半径值,计算球的体积。Input 输入数据有多组,每组占一行,每行包括一个实数,表示球的半径。Output 输出对应的球的体积,对于每组输入数据,输出一行,计算结果保留三位小数。Sample Input1 1.5Sample Output4.189 14.137#include<iostream>#include<cstdio>#include<cstring>#includ

2016-11-16 21:02:05 309

原创 第几天?

Description 给定一个日期,输出这个日期是该年的第几天。Input 输入数据有多组,每组占一行,数据格式为YYYY/MM/DD组成,具体参见sample input ,另外,可以向你确保所有的输入数据是合法的。Output 对于每组输入数据,输出一行,表示该日期是该年的第几天。Sample Input1985/1/20 2006/3/12Sample Output20 71#in

2016-11-16 20:13:02 236

原创 ASCII码排序

Description 输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个字符。Input 输入数据有多组,每组占一行,有三个字符组成,之间无空格。Output 对于每组输入数据,输出一行,字符中间用一个空格分开。Sample Inputqwe asd zxcSample Outpute q w a d s c x z#include<iostream>#include<

2016-11-16 19:42:09 185

原创 计算两点间的距离

Problem Description 输入两点坐标(X1,Y1),(X2,Y2),计算并输出两点间的距离。 Input 输入数据有多组,每组占一行,由4个实数组成,分别表示x1,y1,x2,y2,数据之间用空格隔开。 Output 对于每组输入数据,输出一行,结果保留两位小数。 Sample Input0 0 0 1 0 1 1 0Sample Output1.00 1.41#in

2016-11-16 19:38:14 307

原创 求绝对值

Problem Description 求实数的绝对值。 Input 输入数据有多组,每组占一行,每行包含一个实数。 Output 对于每组输入数据,输出它的绝对值,要求每组数据输出一行,结果保留两位小数。 Sample Input123 -234.00Sample Output123.00 234.00#include<iostream>#include<cstdio>#inc

2016-11-16 19:32:29 370

原创 成绩转换

Problem Description 输入一个百分制的成绩t,将其转换成对应的等级,具体转换规则如下: 90~100为A; 80~89为B; 70~79为C; 60~69为D; 0~59为E; Input 输入数据有多组,每组占一行,由一个整数组成。 Output 对于每组输入数据,输出一行。如果输入数据不在0~100范围内,请输出一行:“Score is error!”。

2016-11-16 14:26:26 383

原创 A + B Problem

Problem Description Calculate A + B. Input Each line will contain two integers A and B. Process to end of file. Output For each case, output A + B in one line. Sample Input1 1Sample Output2#inclu

2016-11-16 14:09:27 218

原创 hdu 1.3.3/hed 1084

hdu ACM STEPS 1.3.3“Point, point, life of student!” This is a ballad(歌谣)well known in colleges, and you must care about your score in this exam too. How many points can you get? Now, I told you th

2016-11-13 20:33:57 217

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除