练习pic
文章平均质量分 79
free-dancer
i am growing~!
展开
-
A. Vladik and Courtesy
At regular competition Vladik and Valera won a and b candies respectively. Vladik offered 1 his candy to Valera. After that Valera gave Vladik 2 his candies, so that no one thought that he was le原创 2017-08-08 22:18:36 · 354 阅读 · 0 评论 -
A. The Useless Toy
Walking through the streets of Marshmallow City, Slastyona have spotted some merchants selling a kind of useless toy which is very popular nowadays – caramel spinner! Wanting to join the craze, she ha原创 2017-08-01 23:17:40 · 343 阅读 · 0 评论 -
守卫问题The Festive Evening
It's the end of July – the time when a festive evening is held at Jelly Castle! Guests from all over the kingdom gather here to discuss new trends in the world of confectionery. Yet some of the things原创 2017-08-01 23:25:33 · 389 阅读 · 0 评论 -
B. Vladik and Complicated Book
Vladik had started reading a complicated book about algorithms containing n pages. To improve understanding of what is written, his friends advised him to read pages in some order given by permutati原创 2017-08-08 22:42:55 · 348 阅读 · 0 评论 -
求星期几的问题
Bessie asked her friend what day of the week she was born on. She knew that she was born on 2003 May 25, but didn't know what day it was. Write a program to help. Note that no cow was born earlier tha原创 2017-08-10 22:33:05 · 918 阅读 · 0 评论 -
一个数塔问题
The cows don't use actual bowling balls when they go bowling. They each take a number (in the range 0..99), though, and line up in a standard bowling-pin-like triangle like this: 7原创 2017-08-10 22:35:07 · 470 阅读 · 0 评论 -
Satellite Photographs(dfs)
Farmer John purchased satellite photos of W x H pixels of his farm (1 <= W <= 80, 1 <= H <= 1000) and wishes to determine the largest 'contiguous' (connected) pasture. Pastures are contiguous when any原创 2017-08-10 22:39:30 · 669 阅读 · 0 评论 -
Max Factor(找最大素数)
To improve the organization of his farm, Farmer John labels each of his N (1 <= N <= 5,000) cows with a distinct serial number in the range 1..20,000. Unfortunately, he is unaware that the cows interp原创 2017-08-10 23:39:32 · 894 阅读 · 0 评论 -
Knights of Ni (bfs)
Description Bessie is in Camelot and has encountered a sticky situation: she needs to pass through the forest that is guarded by the Knights of Ni. In order to pass through safely, the Knights have d原创 2017-08-15 22:18:36 · 425 阅读 · 0 评论