04 2015 档案
摘要:DescriptionThe game “The Pilots Brothers: following the stripy elephant” has a quest where a player needs to open a refrigerator.There...
阅读全文
摘要:DescriptionFlip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each pie...
阅读全文
摘要:Time Limit: 5000MS Memory Limit: 65536KTotal Submissions: 37683 Accepted: 17656Case Time Limit: 2000MSDescriptionFor the daily milking...
阅读全文
摘要:We often have to copy large volumes of information. Such operation can take up many computer resources. Therefore, in this problem you...
阅读全文
摘要:Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 37779 Accepted: 11355DescriptionChosen Problem Solving and Program design as...
阅读全文
摘要:Time Limit: 5000MS Memory Limit: 131072KTotal Submissions: 11303 Accepted: 3520Case Time Limit: 2000MSDescriptionN children are sittin...
阅读全文
摘要:DescriptionRailway tickets were difficult to buy around the Lunar New Year in China, so we must get up early and join a long queue…The...
阅读全文
摘要:time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have r red, g green and b blu...
阅读全文
摘要:Problem DescriptionThe counter-terrorists found a time bomb in the dust. But this time the terrorists improve on the time bomb. The nu...
阅读全文
摘要:Problem Description杭州人称那些傻乎乎粘嗒嗒的人为62(音:laoer)。杭州交通管理局经常会扩充一些的士车牌照,新近出来一个好消息,以后上牌照,不再含有不吉利的数字了,这样一来,就可以消除个别的士司机和乘客的心理障碍,更安全地服务大众。不吉利的数字...
阅读全文
摘要:Problem DescriptionC国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了。A国在海岸线沿直线布置了N个工兵营地,Derek和Tidy的任务就是要监视这些工兵营地的活动情况。由于采取了某种先进的监测手段,所以...
阅读全文
摘要:Problem Description上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从...
阅读全文
摘要:Problem DescriptionA balanced number is a non-negative integer that can be balanced if a pivot is placed at some digit. More specifica...
阅读全文
摘要:The Little Elephant very much loves sums on intervals.This time he has a pair of integers l and r (l ≤ r). The Little Elephant has to ...
阅读全文
摘要:不含前导零且相邻两个数字之差至少为2的正整数被称为windy数。windy想知道,在A和B之间,包括A和B,总共有多少个windy数?这是一道数位dp,设dp[i][j],dp[i][j]表示i为长度,j为最高位上的数字的个数。#include#include#inc...
阅读全文
摘要:Let's define logical OR as an operation on two logical values (i. e. values that belong to the set {0, 1}) that is equal to 1 if eithe...
阅读全文
摘要:Last week, Hamed learned about a new type of equations in his math class called Modular Equations. Lets define i modulo j as the remai...
阅读全文
摘要:You got a box with a combination lock. The lock has a display showing n digits. There are two buttons on the box, each button changes ...
阅读全文
摘要:During the lunch break all n Berland State University students lined up in the food court. However, it turned out that the food court,...
阅读全文
摘要:Crazy Town is a plane on which there are n infinite line roads. Each road is defined by the equation aix + biy + ci = 0, where ai and ...
阅读全文
摘要:New Year is coming, and Jaehyun decided to read many books during 2015, unlike this year. He has n books numbered by integers from 1 t...
阅读全文
摘要:Twilight Sparkle was playing Ludo with her friends Rainbow Dash, Apple Jack and Flutter Shy. But she kept losing. Having returned to t...
阅读全文
摘要:Fox Ciel is playing a mobile puzzle game called "Two Dots". The basic levels are played on a board of size n × m cells, like this:Each...
阅读全文
摘要:Someday, Drazil wanted to go on date with Varda. Drazil and Varda live on Cartesian plane. Drazil's home is located in point (0, 0) an...
阅读全文
摘要:Vitaly is a diligent student who never missed a lesson in his five years of studying in the university. He always does his homework on...
阅读全文
摘要:Anya has bought a new smartphone that uses Berdroid operating system. The smartphone menu has exactly n applications, each application...
阅读全文
摘要:Om Nom is the main character of a game "Cut the Rope". He is a bright little monster who likes visiting friends living at the other si...
阅读全文
摘要:DescriptionAlice owns a construction company in the town of Norainia, famous for its unusually dry weather. In fact, it only rains a f...
阅读全文
摘要:Ford Prefect got a job as a web developer for a small company that makes towels. His current work task is to create a search engine fo...
阅读全文
摘要:Description按邻接矩阵的方法创建图,分别用深度优先和广度优先方法遍历图。Input输入的数据有多组对于每组测试数据第一行为图中点的个数n(0 #include#include#include using namespace std;int map[110][...
阅读全文
摘要:DescriptionEducators are always coming up with new ways to teach math to students. In 2011, an educational software company, All Compu...
阅读全文
摘要:DescriptionAmerican Carnival Makers Inc. (ACM) has a long history of designing rides and attractions. One of their more popular attrac...
阅读全文
摘要:Problem Description人随着岁数的增长是越大越聪明还是越大越笨,这是一个值得全世界科学家思考的问题,同样的问题Eddy也一直在思考,因为他在很小的时候就知道亲和串如何判断了,但是发现,现在长大了却不知道怎么去判断亲和串了,于是他只好又再一次来请教聪明且...
阅读全文
摘要:Problem DescriptionNetwork flow is a well-known difficult problem for ACMers. Given a graph, your task is to find out the maximum flow...
阅读全文
摘要:DescriptionN (2 #define maxn 8005int a[maxn],c[maxn];struct node{ int len,l,r,sum;}b[4*maxn];void build(int l,int r,int i){ int mid; b...
阅读全文
摘要:DescriptionYou have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some ...
阅读全文