- 博客(77)
- 收藏
- 关注
原创 MATLAB基础速成
变量MATLAB程序的基本数据单元是数组。标量在MATLAB里面也被当做数组处理,被看作只有一行一列的数组。数组可以定义为向量或矩阵,向量一般描述一维数组,矩阵一般描述二维或多维数组。数组的定义要用[]来括起来,数组中同一行元素间以空格或逗号','隔开,行与行间由分号';'隔开。定义及赋值方式: 实数 >> x = 5 ...
2019-08-09 18:14:29 1966 3
原创 Starship Hakodate-maru
Starship Hakodate-maruTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 881 Accepted Submission(s): 594 Problem DescriptionThe surveyor...
2018-08-21 19:48:15 286
原创 Knight Moves(广搜
Knight MovesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13713 Accepted Submission(s): 8038 Problem DescriptionA friend of you is ...
2018-08-21 19:15:27 164
原创 Red and Black(深搜
Red and BlackTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 26031 Accepted Submission(s): 15730 Problem DescriptionThere is a rectan...
2018-08-21 16:59:37 242
原创 Sum It Up
Sum It UpTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7887 Accepted Submission(s): 4141 Problem DescriptionGiven a specified total...
2018-08-21 15:41:48 151
原创 胜利大逃亡
胜利大逃亡 Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 43695 Accepted Submission(s): 15200 Problem Description Ignatius被...
2018-08-21 10:59:09 330
原创 Rescue
RescueTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 37605 Accepted Submission(s): 13027 Problem DescriptionAngel was caught by the ...
2018-08-21 09:49:57 215
原创 Oil Deposits
Oil DepositsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 42766 Accepted Submission(s): 24814 Problem DescriptionThe GeoSurvComp ge...
2018-08-21 08:53:01 107
原创 Asteroids!
Asteroids!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6065 Accepted Submission(s): 3813 Problem DescriptionYou're in space.You w...
2018-08-20 20:28:20 338
原创 Farm Irrigation
Farm IrrigationTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11569 Accepted Submission(s): 5002 Problem DescriptionBenny has a spac...
2018-08-20 19:04:43 131
原创 Open the Lock
Open the LockTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7538 Accepted Submission(s): 3367 Problem DescriptionNow an emergent tas...
2018-08-20 15:43:55 303
原创 变形课
变形课Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 31029 Accepted Submission(s): 11184 Problem Description呃......变形课上Harry碰到了一点小麻烦,因...
2018-08-20 11:25:52 114
转载 诡异的楼梯
诡异的楼梯Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 19088 Accepted Submission(s): 4982 Problem DescriptionHogwarts正式开学以后,Harry发现在Ho...
2018-08-20 10:34:40 122
原创 连连看(深搜
连连看Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 41568 Accepted Submission(s): 10286 Problem Description“连连看”相信很多人都玩过。没玩过也没关系,下面我...
2018-08-19 20:11:34 127
原创 Remainder(广搜
RemainderTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4666 Accepted Submission(s): 1176 Problem DescriptionCoco is a clever boy, w...
2018-08-19 15:48:00 123
转载 Nightmare(广搜
NightmareTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 13949 Accepted Submission(s): 6758 Problem DescriptionIgnatius had a nightma...
2018-08-19 11:01:59 172
原创 Tempter of the Bone
Tempter of the BoneTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 148118 Accepted Submission(s): 39484 Problem DescriptionThe doggie...
2018-08-18 20:32:34 108
原创 Prime Ring Problem(深搜
Prime Ring ProblemTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 66276 Accepted Submission(s): 28396 Problem DescriptionA ring is co...
2018-08-18 17:27:50 96
原创 畅通工程续(dijkstra算法
畅通工程续Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 69933 Accepted Submission(s): 27052 Problem Description某省自从实行了很多年的畅通工程计划后,终于修建了很...
2018-08-15 10:05:58 175
原创 Constructing Roads(Kruskal算法完成
Constructing RoadsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 28420 Accepted Submission(s): 10822 Problem DescriptionThere are N ...
2018-08-14 10:45:09 370
转载 并查集详解 (转)
这个文章是几年前水acm的时候转的, 当时也不知道作者是谁, 要是有人知道的话说一下吧 并查集是我暑假从高手那里学到的一招,觉得真是太精妙的设计了。以前我无法解决的一类问题竟然可以用如此简单高效的方法搞定。不分享出来真是对不起party了。(party:我靠,关我嘛事啊?我跟你很熟么?)来看一个实例,杭电1232畅通工程首先在地图上给你若干个城镇,这些城镇都可以看作点,然后告诉你哪...
2018-08-13 19:04:55 85
原创 一种排序(set结构体排序)
一种排序时间限制:3000 ms | 内存限制:65535 KB难度:3输入第一行有一个整数 0<n<10000,表示接下来有n组测试数据;每一组第一行有一个整数 0<m<1000,表示有m个长方形;接下来的m行,每一行有三个数 ,第一个数表示长方形的编号,第二个和第三个数值大的表示长,数值小的表示宽,相等说明这是一个正方形(数据约定长宽与编号都...
2018-08-11 15:59:54 457
原创 确定比赛名次(未AC
确定比赛名次 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 36318 Accepted Submission(s): 14223 Problem Description 有N个比赛队(...
2018-08-11 10:48:58 93
原创 What Are You Talking About(map)
What Are You Talking About Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 102400/204800 K (Java/Others) Total Submission(s): 28122 Accepted Submission(s): 9595 Problem D...
2018-08-11 09:17:32 459
原创 水果
水果 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 11096 Accepted Submission(s): 4448 Problem Description 夏天来了~~好开心啊,呵...
2018-08-10 17:20:50 140
原创 Let the Balloon Rise
Let the Balloon Rise Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 146420 Accepted Submission(s): 58127 Problem Descript...
2018-08-10 16:47:14 111
原创 Double Queue
Double QueueTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1455 Accepted Submission(s): 733 Problem DescriptionThe new founded Balka...
2018-08-09 20:17:56 703
原创 Prime Friend
Prime FriendTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4638 Accepted Submission(s): 947 Problem DescriptionBesides the ordinary ...
2018-08-09 16:27:20 387
原创 排列2
排列2Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10945 Accepted Submission(s): 3881 Problem DescriptionRay又对数字的列产生了兴趣:现有四张卡片,用这四张卡...
2018-08-09 12:20:37 166
转载 最少拦截系统
最少拦截系统Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 56490 Accepted Submission(s): 22172 Problem Description某国为了防御敌国的导弹袭击,发展出一种导弹拦截系...
2018-08-09 10:26:23 85
原创 剪花布条
剪花布条Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 28764 Accepted Submission(s): 17606 Problem Description一块花布条,里面有些图案,另有一块直接可用的小饰条,...
2018-08-09 09:41:32 135
原创 排名
排名(水题Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 27362 Accepted Submission(s): 10224 Problem Description今天的上机考试虽然有实时的Ranklist,但上面...
2018-08-08 20:53:15 121
原创 Clock
ClockTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6518 Accepted Submission(s): 2055 Problem DescriptionThere is an analog clock wi...
2018-08-08 19:45:55 98
原创 1863: 汉诺塔(三)
时间限制: 3 Sec 内存限制: 64 MB提交: 42 解决: 29您该题的状态:已完成[提交][状态][讨论版]题目描述在印度,有这么一个古老的传说:在世界中心贝拿勒斯(在印度北部)的圣庙里,一块黄铜板上插着三根宝石针。印度教的主神梵天在创造世界的时候,在其中一根针上从下到上地穿好了由大到小的64片金片,这就是所谓的汉诺塔。不论白天黑夜,总有一个僧侣在按照下面的法则移动...
2018-08-05 15:32:23 95
原创 1792: 括号配对问题
1792: 括号配对问题时间限制: 3 Sec 内存限制: 64 MB提交: 141 解决: 67您该题的状态:已完成[提交][状态][讨论版]题目描述现在,有一行括号序列,请你检查这行括号是否配对。输入第一行输入一个数N(0<N<=100),表示有N组测试数据。后面的N行输入多组输入数据,每组输入数据都是一个字符串S(S的长度小于10000,且S不是空串)...
2018-08-05 14:59:54 95
原创 1881: 求逆序数
1881: 求逆序数时间限制: 2 Sec 内存限制: 64 MB提交: 137 解决: 44您该题的状态:已完成[提交][状态][讨论版]题目描述在一个排列中,如果一对数的前后位置与大小顺序相反,即前面的数大于后面的数,那么它们就称为一个逆序。一个排列中逆序的总数就称为这个排列的逆序数。现在,给你一个N个元素的序列,请你判断出它的逆序数是多少。比如 1 3 2 的逆序...
2018-08-05 09:55:40 123
转载 白话经典算法系列之五 归并排序的实现(讲的真好)
归并排序是建立在归并操作上的一种有效的排序算法。该算法是采用分治法(Divide and Conquer)的一个非常典型的应用。首先考虑下如何将将二个有序数列合并。这个非常简单,只要从比较二个数列的第一个数,谁小就先取谁,取了后就在对应数列中删除这个数。然后再进行比较,如果有数列为空,那直接将另一个数列的数据依次取出即可。//将有序数组a[]和b[]合并到c[]中 void Meme...
2018-08-05 08:28:30 103
原创 1223: 数组排序
1223: 数组排序时间限制: 1 Sec 内存限制: 32 MB提交: 73 解决: 33您该题的状态:已完成[提交][状态][讨论版]题目描述输入一个数组的值,求出各个值从小到大排序后的次序。输入输入有多组数据。每组输入的第一个数为数组的长度n(1<=n<=10000),后面的数为数组中的值,以空格分割。输出各输入的值按从小到大排列的次序(最...
2018-08-04 19:09:44 180
原创 Least Common Multiple
Least Common MultipleTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 62259 Accepted Submission(s): 23800 Problem DescriptionThe least...
2018-08-02 17:08:30 201
原创 1989: mdd的烦恼
1989: mdd的烦恼时间限制: 1 Sec 内存限制: 64 MB提交: 53 解决: 35您该题的状态:已完成[提交][状态][讨论版]题目描述今天mdd看到这么一段话:在数论,对正整数n,欧拉函数是少于或等于n的数中与n互质的数的数目。此函数以其首名研究者欧拉命名,它又称为Euler's totient function、φ函数、欧拉商数等。 例如φ(8)=4,因为1,...
2018-08-02 16:20:39 129
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人