- 博客(48)
- 资源 (9)
- 收藏
- 关注
原创 数论:欧拉函数 uva 10820
10820 - Send a TableTime limit: 3.000 seconds http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=115&page=show_problem&problem=1761When participating in programmin
2015-08-26 16:01:09 888
原创 topcoders 666
早起切两水:222:class DevuAndGame{ public: int vis[55]; int a[55]; int dfs(int u) { if(u == -1) return 1; vis[u] = 1; int v
2015-08-26 11:57:22 872
原创 2012 成都网络赛
ControlTime Limit: 1000msMemory Limit: 32768KB64-bit integer IO format: %I64d Java class name: MainSubmit Status PID: 26307 You, the head of Department of Security, recently received a top-secre
2015-08-25 20:14:55 623
原创 Buildings
BuildingsTime Limit: 2000msMemory Limit: 32768KB64-bit integer IO format: %I64d Java class name: MainSubmit Status PID: 26314 Have you ever heard the story of Blue.Mary
2015-08-25 18:47:32 162
原创 hdu 5410
CRB and His BirthdayTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 625 Accepted Submission(s): 325Problem DescriptionToday i
2015-08-24 17:40:55 745
原创 Rabbit Party
G. Rabbit PartyTime Limit: 5000msMemory Limit: 65536KB64-bit integer IO format: %lld Java class name: MainSubmit Status PID: 39423Rabbit PartyA rabbit Taro decided
2015-08-24 15:49:31 1066
原创 Calender Colors
Calender ColorsTaro is a member of a programming contest circle. In this circle, the members manage their schedules in the system called Great Web Calender.Taro has just added some of his frie
2015-08-24 11:09:52 728
原创 Marathon Match
Marathon MatchN people run a marathon. There are M resting places on the way. For each resting place, the i-th runner takes a break with probability Pi percent. When the i-th runner takes a
2015-08-24 11:08:24 704
原创 hdu 5396 区间DP
ExpressionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 482 Accepted Submission(s): 284Problem DescriptionTeacher Mai has n
2015-08-21 21:09:39 633
原创 hdu 5416
欢迎参加——每周六晚的BestCoder(有米!)CRB and TreeTime Limit: 8000/4000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 607 Accepted Submission(s): 194P
2015-08-21 15:12:25 1193 2
原创 poj 3233 矩阵快速幂
Matrix Power SeriesTime Limit: 3000MS Memory Limit: 131072KTotal Submissions: 17981 Accepted: 7608DescriptionGiven a n × n matrix A and a positive integer k, fi
2015-08-20 20:47:09 521
原创 LA 3026
For each prefix of a given string S with N characters (each character has an ASCII code between 97 and126, inclusive), we want to know whether the prefix is a periodic string. That is, for each i (2
2015-08-19 17:05:57 726
原创 codeforces 316 D
D. Tree Requeststime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputRoman planted a tree consisting of n verti
2015-08-19 11:14:13 819
原创 多校 9
Arithmetic SequenceTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 0 Accepted Submission(s): 0Problem DescriptionA sequence b
2015-08-18 17:02:55 766
原创 codeforces 250 div1 D
D. The Child and Sequencetime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAt the children's day, the child
2015-08-17 20:50:47 867
原创 codeforces 250 div2 E
E. The Child and Polygontime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThis time our child has a simple p
2015-08-17 14:12:31 1012
原创 codefroces 并查集 250 D
D. The Child and Zootime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputOf course our child likes walking in a
2015-08-16 20:08:58 760
原创 codeforces 250 div2 A B C D
A. 模拟#include using namespace std;#define LL long long#define INF 0x3f3f3f3f#define maxn 100 + 10char s[4][maxn];int len[4];int main(){ int t1, t2; int Min = INF, Max = -INF;
2015-08-16 16:53:11 996
原创 codeforces 570 c
#include #include #include using namespace std;#define N 300000 + 10int n, m;char s[N];int doit(){ int res = 0; int cnt = 0; for(int i = 1; i <= n; i++) { if(s[i] =
2015-08-16 11:20:52 1016
原创 Bestcoders 51 div2 1001
Zball in Tina Town Accepts: 356 Submissions: 2463 Time Limit: 3000/1500 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Problem DescriptionTina Town is a
2015-08-15 23:24:57 809
原创 codefoeces 567 D
D. One-Dimensional Battle Shipstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAlice and Bob love playing o
2015-08-15 23:22:36 805
原创 cf 567 c
C. Geometric Progressiontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPolycarp loves geometric progressio
2015-08-15 16:19:19 1094
原创 hdu 5372 Segment Game
Segment GameTime Limit: 3000/1500 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1198 Accepted Submission(s): 345Problem DescriptionLillian is a c
2015-08-15 13:35:01 799
原创 HDU 多校 VIII 1008 clock
ClockTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 377 Accepted Submission(s): 200Problem DescriptionGive a time.(hh:mm:ss)
2015-08-13 22:49:58 644
原创 HDU 5365
RunTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 957 Accepted Submission(s): 413Problem DescriptionAFA is a girl who like r
2015-08-13 19:54:47 630
原创 hdu 5375 多校
Gray codeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 604 Accepted Submission(s): 357Problem DescriptionThe reflected bina
2015-08-12 20:51:25 748
原创 01背包 动态规划
C. Dima and Saladtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDima, Inna and Seryozha have gathered in a
2015-08-12 19:39:17 819
原创 codeforces 374D
D. Inna and Sequencetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDima's spent much time thinking what p
2015-08-12 16:31:26 771
原创 uva 10118 记忆化搜索
Little Bob is playing a game. He wants to win some candies in it - as many as possible.There are 4 piles, each pile contains N candies. Bob is given a basket which can hold at most 5candies. Each
2015-08-10 19:51:07 873
原创 切了几道水题复习
1. poj 1088#include#include#include#include#include#include#include#include#include#include#include#includeusing namespace std;#define eps 1e-8#define PI acos(-1.0)#define INF 0x3f3f3
2015-08-10 17:39:35 649
原创 单调队列水题 刷广告
【问题描述】最近,afy决定给TOJ印刷广告,广告牌是刷在城市的建筑物上的,城市里有紧靠着的N个建筑。afy决定在上面找一块尽可能大的矩形放置广告牌。我们假设每个建筑物都有一个高度,从左到右给出每个建筑物的高度H1,H2…HN,且0要求输出广告牌的最大面积。【输入文件】输入文件 ad.in 中的第一行是一个数n (n第二行是n个数,分别表示每个建筑物
2015-08-10 10:34:04 2359 1
原创 codeforces
B - Inna and NineTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionInna loves digit 9 very much. That's why she asked Dima to wri
2015-08-09 17:15:19 1379
原创 HDU 1466 直线交点情况
的BestCoder(有米!)计算直线的交点数Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8881 Accepted Submission(s): 4006Problem Descr
2015-08-09 11:53:48 717
原创 BC
The mook jong Accepts: 185 Submissions: 306 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Problem DescriptionZJiaQ want to become
2015-08-08 22:14:44 651
原创 uva 116
Unidirectional TSPTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionBackgroundProblems that require minimum p
2015-08-07 17:08:11 601
原创 uva 1347
TourTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionJohn Doe, a skilled pilot, enjoys traveling. While on vacat
2015-08-07 15:45:13 685
原创 uva 动态规划 437 The Tower of Babylon
The Tower of BabylonTime Limit: 3000MS Memory Limit: Unknown 64bit IO Format: %lld & %lluSubmit StatusDescriptionPerhaps you have heard of the legend of the
2015-08-07 13:06:49 641
原创 动态规划 uva 1025
Secret agent Maria was sent to Algorithms City to carry out an especially dangerous mission. Afterseveral thrilling events we find her in the first station of Algorithms City Metro, examining the ti
2015-08-07 09:56:38 1147
原创 2015 multiply 6 1011
Key SetTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 207 Accepted Submission(s): 135Problem Descriptionsoda has a set S w
2015-08-06 20:03:15 603
原创 2015多校VI hdu
CakeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 0 Accepted Submission(s): 0Special JudgeProblem DescriptionThere are m
2015-08-06 18:58:37 690 3
8253A级联工作下的GATE控制
2015-11-16
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人