- 博客(172)
- 收藏
- 关注
原创 OpenGL 窗口创建
使用OpenGL实用库的第一步是初始化GLUT:glutInit(&argc, argv); 接着, 是说明展示窗口的标题: glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); 下面就是指定显示窗口需要显示的内容, 使用OpenGL函数创建一个图并把图的定义传给GLUT函数glutDisplayFunc(即将图赋给显
2017-03-17 17:22:07
887
原创 HDU 4027 - Can you answer these queries?(线段树)
Can you answer these queries?Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65768/65768 K (Java/Others) Total Submission(s): 15043 Accepted Submission(s): 3529Problem Description A lot of
2017-03-15 14:55:16
393
原创 POJ 3368 - Frequent values(离散化ST)
Frequent values Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 18364 Accepted: 6602 DescriptionYou are given a sequence of n integers a1 , a2 , … , an in non-decreasing order
2017-03-13 20:54:08
505
原创 Codeforces 367B - Sereja ans Anagrams(map)
B. Sereja ans Anagrams time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Sereja has two sequences a and b and number p. Sequence a consists o
2017-03-13 16:00:19
401
原创 POJ 3191 - The Moronic Cowmpouter(进制转换)
The Moronic Cowmpouter Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 4192 Accepted: 2168 DescriptionInexperienced in the digital arts, the cows tried to build a calculating eng
2017-03-13 14:41:29
556
原创 POJ 3186 - Treats for the Cows(DP)
Treats for the Cows Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 5729 Accepted: 2963 DescriptionFJ has purchased N (1 <= N <= 2000) yummy treats for the cows who get money for
2017-03-13 14:27:42
394
原创 Codeforces 367A - Sereja and Algorithm(前缀和)
A. Sereja and Algorithm time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Sereja loves all sorts of algorithms. He has recently come up with
2017-03-10 18:21:17
361
原创 Codeforces 366D - Dima and Trap Graph(DFS)
D. Dima and Trap Graph time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandard output Dima and Inna love spending time together. The problem is, Seryozha
2017-03-10 15:36:58
361
原创 Codeforces 366C - Dima and Salad(DP)
C. Dima and Salad time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Dima, Inna and Seryozha have gathered in a room. That’s right, someone’s
2017-03-09 19:42:03
587
原创 Codeforces 450D - Jzzhu and Cities(最短路)
D. Jzzhu and Cities time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Jzzhu is the president of country A. There are n cities numbered from
2017-03-06 13:13:20
531
原创 Codeforces 362D - Fools and Foolproof Roads(并查集+优先队列)
D. Fools and Foolproof Roads time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output You must have heard all about the Foolland on your Geography l
2017-03-03 17:35:34
464
原创 Codeforces 552C - Vanya and Scales(数学)
C. Vanya and Scales time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Vanya has a scales for weighing loads and weights of masses w0, w1, w2,
2017-03-02 17:56:41
425
原创 Codeforces 552B - Vanya and Books(数学)
B. Vanya and Books time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Vanya got an important task — he should enumerate books in the library a
2017-03-02 17:46:27
600
原创 Codeforces 551C - GukiZ hates Boxes(贪心二分)
C. GukiZ hates Boxes time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Professor GukiZ is concerned about making his way to school, because
2017-03-01 21:22:03
443
原创 Codeforces 550D - Regular Bridge(构造)
D. Regular Bridge time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output An undirected graph is called k-regular, if the degrees of all its verti
2017-02-26 21:36:08
385
原创 Codeforces 550C - Divisibility by Eight(思维)
C. Divisibility by Eight time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output You are given a non-negative integer n, its decimal representatio
2017-02-25 15:00:14
427
原创 Codeforces 363D - Renting Bikes(贪心二分)
D. Renting Bikes time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output A group of n schoolboys decided to ride bikes. As nobody of them has a bik
2017-02-24 14:47:07
791
原创 POJ 1182 - 食物链(种类并查集)
食物链 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 67959 Accepted: 20089 Description动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到
2017-02-23 16:40:03
436
原创 Codeforces 361C - Levko and Array Recovery(贪心)
C. Levko and Array Recovery time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Levko loves array a1, a2, … , an, consisting of integers, very
2017-02-22 20:34:47
765
原创 Codeforces 548C - Mike and Frog(暴力循环节)
C. Mike and Frog time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Mike has a frog and a flower. His frog is named Xaniar and his flower is n
2017-02-21 18:03:09
827
原创 POJ 2431 - Expedition(贪心)
Expedition Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 14212 Accepted: 4020 DescriptionA group of cows grabbed a truck and ventured on an expedition deep into the jungle.
2017-02-20 18:25:15
465
原创 Codeforces 544B - Sea and Islands(构造)
B. Sea and Islands time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output A map of some object is a rectangular field consisting of n rows and n c
2017-02-13 14:29:23
721
原创 Codeforces 667B - Coat of Anticubism(思维)
B. Coat of Anticubism time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard outputAs some of you know, cubism is a trend in art, where the problem of con
2017-02-05 12:46:20
542
原创 Codeforces 621B - Wet Shark and Bishops(思维)
B. Wet Shark and Bishops time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Today, Wet Shark is given n bishops on a 1000 by 1000 grid. Both
2017-01-30 10:30:43
492
原创 Codeforces 615B - Longtail Hedgehog(DP)
B. Longtail Hedgehog time limit per test3 seconds memory limit per test256 megabytes inputstandard input outputstandard output This Christmas Santa gave Masha a magic picture and a pencil. The pic
2017-01-27 11:43:10
378
原创 Codeforces 604C - Alternative Thinking(思维)
C. Alternative Thinking time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Kevin has just recevied his disappointing results on the USA Ident
2017-01-24 23:03:51
686
原创 Codeforces 604B - Alan Wake(二分)
B. More Cowbell time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Kevin Sun wants to move his precious collection of n cowbells from Naperth
2017-01-24 22:44:41
403
原创 Codeforces 602B - Approximating a Constant Range(DP)
B. Approximating a Constant Range time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output When Xellos was doing a practice course in university, h
2017-01-24 01:30:36
557
原创 CodeForces 593B - Anton and Lines(思维)
B. Anton and Lines time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output The teacher gave Anton a large geometry homework, but he didn’t do it (a
2017-01-18 22:25:07
476
原创 CodeForces 593A - 2Char(暴力)
A. 2Char time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Andrew often reads articles in his favorite magazine 2Char. The main feature of t
2017-01-18 15:25:46
356
原创 CodeForces 588C - Duff and Weight Lifting(思维)
C. Duff and Weight Lifting time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Recently, Duff has been practicing weight lifting. As a hard pra
2017-01-18 00:09:37
449
原创 CodeForces 581C - Developing Skills(模拟)
C. Developing Skills time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Petya loves computer games. Finally a game that he’s been waiting for
2017-01-15 21:55:12
420
原创 CodeForces 584D - Dima and Lisa(数论)
D. Dima and Lisa time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Dima loves representing an odd number as the sum of multiple primes, and L
2017-01-15 20:28:45
597
原创 CodeForces 584C - Marina and Vasya(构造)
C. Marina and Vasya time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Marina loves strings of the same length and Vasya loves when there is a
2017-01-15 18:28:43
390
原创 CodeForces 581C - GCD Table(思维)
C. GCD Table time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output The GCD table G of size n × n for an array of positive integers a of length n
2017-01-14 12:37:41
513
原创 POJ 2828 - Buy Tickets(线段树)
Buy Tickets Time Limit: 4000MS Memory Limit: 65536K Total Submissions: 19367 Accepted: 9587 DescriptionRailway tickets were difficult to buy around the Lunar New Year in China, so we mus
2017-01-14 00:41:29
444
原创 HDU 1950 - Bridging signals(LIS)
Bridging signalsTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 2114 Accepted Submission(s): 1386Problem Description ‘Oh no, they’ve done i
2017-01-11 15:10:06
308
原创 HDU 1257 - 最少拦截系统(LIS)
最少拦截系统Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 37591 Accepted Submission(s): 14778Problem Description 某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统.但是这种
2017-01-11 14:52:21
331
原创 POJ 2528 - Mayor's posters(模拟)
Mayor’s posters Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 60890 Accepted: 17606 DescriptionThe citizens of Bytetown, AB, could not stand that the candidates in the mayor
2016-12-09 18:55:50
410
原创 CodeForces 673D - Bear and Two Paths(构造)
D. Bear and Two Paths time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Bearland has n cities, numbered 1 through n. Cities are connected vi
2016-12-09 17:47:51
475
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人