摘要:
Redraw Beautiful DrawingsTime Limit: 3000/1500 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 3813 Accepted Submiss... 阅读全文
摘要:
Quoit DesignTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 36793Accepted Submission(s): 9552Prob... 阅读全文
摘要:
Problem 2194 星系碰撞Accept: 14Submit: 48Time Limit: 30000 mSecMemory Limit : 327680 KBProblem Description据预测,大约在100亿年后,狮子座星系将与银河系发生碰撞,两个星系的碰撞将会合并两个星系,但是没... 阅读全文
摘要:
ZOJ Problem Set - 2676Network WarsTime Limit:5 Seconds Memory Limit:32768 KB Special JudgeNetwork of Byteland consists ofnservers, connected bymoptica... 阅读全文
摘要:
Desert KingTime Limit:3000MSMemory Limit:65536KTotal Submissions:21766Accepted:6087DescriptionDavid the Great has just become the king of a desert cou... 阅读全文
摘要:
Sightseeing CowsTime Limit:1000MSMemory Limit:65536KTotal Submissions:8218Accepted:2756DescriptionFarmer John has decided to reward his cows for their... 阅读全文
摘要:
Dropping testsTime Limit:1000MSMemory Limit:65536KTotal Submissions:7276Accepted:2523DescriptionIn a certain course, you takentests. If you getaiout o... 阅读全文
摘要:
Hard LifeTime Limit:8000MSMemory Limit:65536KTotal Submissions:7347Accepted:2114Case Time Limit:2000MSSpecial JudgeDescriptionJohn is a Chief Executiv... 阅读全文
摘要:
算法提高 两条直线 时间限制:1.0s 内存限制:256.0MB问题描述给定平面上n个点。求两条直线,这两条直线互相垂直,而且它们与x轴的夹角为45度,并且n个点中离这两条直线的曼哈顿距离的最大值最小。两点之间的曼哈顿距离定义为横坐标的差的绝对值与纵坐标的差的绝对值之和,一个点到两条直线的曼哈顿距... 阅读全文
摘要:
spfa的SLF优化就是small label first 优化,当加入一个新点v的时候如果此时的dis[v]比队首dis[q.front()]还要小的话,就把v点加入到队首,否则把他加入到队尾,因为先扩展最小的点可以尽量使程序尽早的结束,一种方法可以用模拟队列,head,tail,但是由于不知道q... 阅读全文
摘要:
Sliding WindowTime Limit:12000MSMemory Limit:65536KTotal Submissions:41844Accepted:12384Case Time Limit:5000MSDescriptionAn array of sizen≤ 106is give... 阅读全文
摘要:
areaTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 686Accepted Submission(s): 265Problem Descript... 阅读全文
摘要:
C. Glass Carvingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputLeonid wants to become a glass c... 阅读全文
摘要:
set是关联容器,类似于集合,里面的元素不会重复,而且呈现为有序性常用操作:using namespace std;set:s;1.元素插入:s.insert()2.中序遍历:类似vector遍历(用迭代器)set::reverse_iterator rit=s.begin();while(rit!... 阅读全文
摘要:
NetworkTime Limit:5000MSMemory Limit:65536KTotal Submissions:7082Accepted:2555DescriptionA network administrator manages a large network. The network ... 阅读全文
摘要:
True LiarsTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 2087Accepted: 640DescriptionAfter having drifted about in a small boat for a couple... 阅读全文
摘要:
java在java.text java.util java.lang包中查找import java.util.*;import java.text.*;public class Text{ public static void main(String[] args){ long curti... 阅读全文
摘要:
class类(类似结构体)的定义import java.util.Scanner;import java.io.*;class student{//类的名称 public String name; public String num; public int age;//定义类中属性:姓名,学号,年龄... 阅读全文
摘要:
第39届大学生程序设计大赛亚洲区域赛广州站说起这场比赛,多多少少有些遗憾,有些坑,首先要吐槽一下的是这么重要的比赛,测试样例都有错的,我也是醉了,更想不到的是比赛结束后,同样是四道题,有得银的,有得铜的,还有没得奖的,这题目的梯度也太不和谐了吧,无语!!!!接下来就说说比赛的情况吧。比赛开始的的时候... 阅读全文
摘要:
3680: 吊打XXXTime Limit:10 SecMemory Limit:128 MBSecSpecial JudgeSubmit:308Solved:94[Submit][Status]Descriptiongty又虐了一场比赛,被虐的蒟蒻们决定吊打gty。gty见大势不好机智的分出了n个... 阅读全文