- 博客(84)
- 收藏
- 关注
原创 周赛
D 圆周率用acos(-1.0) 使用longlongTime Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit Status Practice LightOJ 1136 uDebugDescriptionThere is sequence 1, 12, 1
2016-08-25 17:50:58 320
原创 周赛
H 圆周率用acos(-1.0) 使用longlongTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit Status Practice LightOJ 1109 uDebugDescriptionWe define b is a Divisor o
2016-08-25 17:27:28 273
原创 周赛
F 圆周率用acos(-1.0) 使用longlongTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit Status Practice LightOJ 1331 uDebugDescriptionAgent J is preparing to st
2016-08-25 17:17:42 210
原创 周赛
E 圆周率用acos(-1.0) 使用longlongTime Limit:500MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit Status Practice LightOJ 1225 uDebugDescriptionA palindromic number or num
2016-08-25 17:16:45 266
原创 周赛
B 圆周率用acos(-1.0) 使用longlongTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmitStatusPracticeLightOJ 1305uDebugDescriptionA parallelogram is a quadrilateral
2016-08-25 17:12:41 276
原创 周赛
圆周率用acos(-1.0) 使用longlongTime Limit:500MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmitStatusPracticeLightOJ 1182uDebugDescriptionGiven an integer n, first we represen
2016-08-25 17:10:52 249
原创 欧拉回路
DTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 1878Description欧拉回路是指不令笔离开纸面,可画过图中每条边仅一次,且可以回到起点的一条回路。现给定一个图,问是否存在欧拉回路?Input测试输入包含若
2016-08-24 19:43:00 275
原创 2016"百度之星"-初赛(AstarRound2A)
ATime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 5695Description众所周知,度度熊喜欢各类体育活动。 今天,它终于当上了梦寐以求的体育课老师。第一次课上,它发现一个有趣的事情。在上课之前,所有同学要排成
2016-08-24 19:38:17 495
原创 边之比的平方=面积之比
DescriptionSee the picture below.You are given AB, AC and BC. DE is parallel to BC. You are also given the area ratio between ADE and BDEC. You have to find the value of AD.InputInput
2016-08-23 21:36:20 716
原创 求n^k的前三位数和后三位数
DescriptionYou are given two integers: n and k, your task is to find the most significant three digits, and least significant three digits of nk.InputInput starts with an integer T (≤ 1000), d
2016-08-23 21:25:13 1995
原创 求一个区间有多少个数能整除k
Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 597ADescriptionFind the number of k-divisible numbers on the segment [a, b]. In ot
2016-08-23 20:36:04 2908
原创 Fibsieve`s Fantabulous Birthday
Fibsieve`s Fantabulous BirthdayTime Limit:500MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmitStatusPracticeLightOJ 1008uDebugDescriptionFibsieve had a fantabulous (yes
2016-08-23 11:19:49 457
原创 Ohana Cleans Up
Ohana Cleans UpTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 554BDescriptionOhana Matsumae is trying to clean a room, which is
2016-08-22 21:04:55 175
原创 音痴又音痴的LT
音痴又音痴的LT时间限制:4000 ms | 内存限制:65535 KB描述LT最近一直在无限循环薛之谦的歌,简直都中毒了!可是呢…他的歌LT还是不会唱(其实不止他的歌LT不会唱,所有人的歌LT都不会唱…因为LT是标准的音痴)可是LT又很喜欢唱歌(所以LT不仅是音痴还是音痴)…没错,这对于LT的室友来说简直是噩梦… 现在呢,LT有N次操作,每次操作只会有两种可能:
2016-08-20 17:09:46 677
原创 不是匹配
不是匹配时间限制:1000 ms | 内存限制:65535 KB描述 有N个人,N个活动, 每个人只会对2个或者3个活动感兴趣, 每个活动也只有两个人或者两个活动对它兴趣,每个人参加一个 感兴趣的活动需要一天 ,且当天该活动被参加时,其他的人不能参加 如果每个人都参加完自己有兴趣的活动,应当怎样安排使得所用总天数时间最短2输入
2016-08-20 17:07:07 278
原创 Prim(普利姆)算法+Kruskal(克鲁斯卡尔)算法
Prim(普利姆)算法1.概览普里姆算法(Prim算法),图论中的一种算法,可在加权连通图里搜索最小生成树。意即由此算法搜索到的边子集所构成的树中,不但包括了连通图里的所有顶点(英语:Vertex (graph theory)),且其所有边的权值之和亦为最小。该算法于1930年由捷克数学家沃伊捷赫·亚尔尼克(英语:Vojtěch Jarník)发现;并在1957年由美国计算
2016-08-19 16:11:14 1809
原创 Vika and Squares
Vika and SquaresTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 610BAppoint description: DescriptionVika has n jars with paint
2016-08-18 20:28:25 269
原创 青蛙的约会
青蛙的约会Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 107178 Accepted: 21363Description两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰
2016-08-18 11:15:15 322
原创 周赛(还要看看)
DTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 220 Solved: 57SubmitStatusWeb BoardDescription晴天想把一个包含n个整数的序列a分成连续的若干段,且和最大的一段的值最小,但他有强迫症,分的段数不能超过m段,然后他就不会分了。。。他想问你这个分出来的和最大的一段的和最小值是多
2016-08-17 21:20:55 275
原创 Parallelogram Counting(POJ 1971)
Parallelogram CountingTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 6258 Accepted: 2155DescriptionThere are n distinct points in the plane, given by t
2016-08-17 21:09:46 315
原创 水水
HTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 282 Solved: 118SubmitStatusWeb BoardDescription在三维空间里,晴天得到了一些坐标,然后他想知道这些坐标有没有重合的哇,然后若两个坐标是重合的也就是x=x,y=y,z=z。然后他把这个任务交给你啦。Input输入第
2016-08-17 19:23:26 270
原创 宝藏
GTime Limit: 1 Sec Memory Limit: 128 MBSubmit: 333 Solved: 71SubmitStatusWeb BoardDescription晴天也来寻宝啦,有一个m层的宝塔,只能从第一层开始一层一层的往上走,每层都有一个门,你需要用钥匙来打开门才能继续走,现在晴天有n把钥匙,编号为0-n-1,然后他要开始寻宝了。没有特殊
2016-08-17 17:13:51 284
原创 过山车(HDU 2063)
过山车Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 16791 Accepted Submission(s): 7334Problem Description RPG girls今天和大家一起去游乐场玩,终于可以坐上
2016-08-17 10:13:13 237
原创 敌兵布阵
敌兵布阵Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionC国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的
2016-08-16 21:28:28 227
原创 Saitama Destroys Hotel
Saitama Destroys HotelTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 608AAppoint description: DescriptionSaitama accidentally
2016-08-16 18:38:58 246
原创 Jam's math problem
Jam's math problemTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 5615DescriptionJam has a math problem. He just learned factorization.
2016-08-15 21:31:00 230
原创 Positive Negative Sign
Positive Negative SignTime Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit Status Practice LightOJ 1294 uDebugDescriptionGiven two integers: n and m and
2016-08-15 21:23:14 284
原创 Ekka Dokka
Ekka DokkaTime Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit Status Practice LightOJ 1116 uDebugDescriptionEkka and his friend Dokka decided to buy a
2016-08-15 21:17:39 350
原创 Trailing Zeroes
Trailing Zeroes (III)Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit Status Practice LightOJ 1138 uDebugDescriptionYou task is to find minimal natu
2016-08-15 20:14:07 225
原创 编辑距离
编辑距离输入第1行:字符串a(a的长度 第2行:字符串b(b的长度 输出输出a和b的编辑距离输入示例kittensitting输出示例3这个问题之所以难,是难在有“添加”“删除”这样的操作,很麻烦。我们试试换个角度理解问题,把它看成字符串对齐的问题,事实上从生物信息学对比基因的角度,我们可以这样理解问题。给
2016-08-15 17:28:49 219
原创 Fox And Two Dots
Fox And Two DotsTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 510BAppoint description: DescriptionFox Ciel is playing a mobi
2016-08-15 16:15:14 321
原创 Bone Collector(0-1背包模板)
Bone CollectorTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 51860 Accepted Submission(s): 21837Problem DescriptionMany year
2016-08-15 11:55:27 371
原创 生日悖论
ITime Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmitStatusPracticeLightOJ 1104uDebugDescriptionSometimes some mathematical results are hard to believe. One
2016-08-13 17:18:43 411
原创 周赛
JTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 1155DescriptionOnce again, James Bond is fleeing from some evil people who want to see
2016-08-13 17:15:07 166
原创 最长公共子序列
最长公共子序列输入第1行:字符串A第2行:字符串B(A,B的长度 输出输出最长的子序列,如果有多个,随意输出1个。输入示例abcicbaabdkscab输出示例abca#include#include#includeusing namesp
2016-08-12 21:38:24 232
原创 Max Sum
Max Sum输入第1行:整数序列的长度N(2 <= N <= 50000)第2 - N + 1行:N个整数(-10^9 输出输出最大子段和。输入示例6-211-413-5-2输出示例20#include#include#include
2016-08-12 19:26:48 169
原创 Two Bases
Two BasesTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 602AAppoint description: DescriptionAfter seeing the "ALL YOUR BASE A
2016-08-12 17:49:41 257
原创 进制转换
将一个十进制数N转化为R进制数:#include#includeint main(){ int N,R,i,j,t; char a[100]; char c[]="0123456789ABCDEF"; while(scanf("%d%d",&N,&R)!=EOF) { if(N<0) t=-1*N; else t=N; fo
2016-08-12 16:47:53 171
原创 最大价值(DP)
最大价值输入第1行:N,N为矩阵的大小。(2 第2 - N + 1行:每行N个数,中间用空格隔开,对应格子中奖励的价值。(1 输出输出能够获得的最大价值。输入示例31 3 32 1 32 2 1输出示例11状态转移方程:dp[i][j]
2016-08-12 15:53:59 911
原创 一个人的旅行(HDU2066)
一个人的旅行Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 32449 Accepted Submission(s): 11182Problem Description虽然草儿是个路痴(就是在杭电待了一
2016-08-12 15:18:07 231
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人