随笔分类 - 杂学--规律题
1
有些题有点复杂,写了很长时间终于写出来,想收藏一下,以后也可以看
摘要:题目链接 Problem Description As we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. Ther
阅读全文
摘要:题目描述: 时间限制:c/c++语言1000MS; 其它语言3000MS 内存限制:c/c++语言65536KB;其他语言589824KB 如下图一个类似手机屏幕的矩形区域,宽度为w,高度为h,一个小球(视为质点,忽略其体积大小)初始位于底边距离左侧x的位置,向右上角45度发射。当小球碰到边界时,按
阅读全文
摘要:题目链接 http://codeforces.com/gym/101102/problem/J Description standard input/output You are given an array A of integers of size N, and Q queries. For e
阅读全文
摘要:原题链接 Problem Description You are a "Problem Killer", you want to solve many problems. Now you have n problems, the i-th problem's difficulty is repres
阅读全文
摘要:ACm-ICPC Live Archive 7464 Robots Write a program to collect data from robots. We are given two sets of robots X = {X1, . . . , Xm}, Y = {Y1, . . . ,
阅读全文
摘要:Description You all must know the puzzle named "The Towers of Hanoi". The puzzle has three pegs and N discs of different radii, initially all disks ar
阅读全文
摘要:Description Little frog Georgie likes to jump. Recently he have discovered the new playground that seems the perfect place to jump. Recently the new j
阅读全文
摘要:题目网址:http://codeforces.com/contest/424/problem/CDescriptionPeople in the Tomskaya region like magic formulas very much. You can see some of them below...
阅读全文
摘要:题目网址:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=102145#problem/DDescriptionNearly each project of the F company has a whole team of develop...
阅读全文
摘要:题目网址:http://codeforces.com/problemset/problem/412/EE. E-mail Addressestime limit per test1 secondmemory limit per test256 megabytesinputstandard input...
阅读全文
摘要:题目网址:http://codeforces.com/problemset/problem/405/CC. Unusual Producttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputo...
阅读全文
摘要:DescriptionThere is a right triangle with legs of lengthaandb. Your task is to determine whether it is possible to locate the triangle on the plane in...
阅读全文
摘要:题目网址:http://codeforces.com/problemset/problem/407/BOne day, little Vasya found himself in a maze consisting of(n + 1)rooms, numbered from1to(n + 1). I...
阅读全文
摘要:B. Trees in a Rowtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe Queen of England hasntrees g...
阅读全文
摘要:DescriptionInna and Dima decided to surprise Sereja. They brought a really huge candy matrix, it's big even for Sereja! Let's number the rows of the g...
阅读全文
摘要:B. Rebrandingtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputThe name of one small but proud cor...
阅读全文
摘要:UsoperantoUsoperanto is an artificial spoken language designed and regulated by Usoperanto Academy. The academy is now in study to establish Strict Us...
阅读全文
摘要:EatChocolate一天,DB小公主把n块不同大小的巧克力送给了HY和SMZ,HY和SMZ决定玩一场游戏。他们把这n块巧克力排成一条线放在桌子上,之后HY从左向右开始一个一个地吃巧克力,而SMZ则从右向左吃。假设他们吃巧克力的速度是一样的,并且速度是1g/s。当然两个人是不能同时吃同一块巧克...
阅读全文
摘要:description给定一个括号字符数组S,S可以用两个整数数组P和W来描述,其中:数组P中的元素Pi定义为:第i个右括号前面有Pi个左括号;数组W中的元素Wi定义为,第i个右括号和其配对的左括号之间所包含的完整的括号的对数。现在给你P数组,让你求出该字符数组S所对应的W数组。比如下面这个例子 ...
阅读全文
摘要:Problem : 1002Time Limit : 1000msMemory Limit : 65536Kdescription有一个用空格( )、逗号(,)或是句号(.)分隔的许多英文单词组成的字符串(分隔的空格可以是多个)。请编写程序将这些单词分开并输出。要求,在main函数中完成数据的输入。...
阅读全文
1

浙公网安备 33010602011771号