水题
提比-我有特殊的AC技巧
这个作者很懒,什么都没留下…
展开
-
Lengthening Sticks - Codeforces 571 A
Lengthening Stickstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given three sticks with positive原创 2015-08-23 15:15:27 · 870 阅读 · 0 评论 -
Diverse Permutation - CodeForces 482 A 水题
A. Diverse Permutationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPermutation p is an ordered set of in原创 2014-11-10 23:27:22 · 576 阅读 · 0 评论 -
Triangle - CodeForces 407A 水题
Triangletime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a right triangle with legs of length a and原创 2014-08-15 22:26:05 · 580 阅读 · 0 评论 -
Yaroslav and Sequence - CodeForces 301A 水题
A. Yaroslav and Sequencetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYaroslav has an array, consisting原创 2014-08-15 22:41:57 · 809 阅读 · 0 评论 -
Appleman and Toastman - CodeForces 461 A 水题
Appleman and Toastmantime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAppleman and Toastman play a game. In原创 2014-08-27 13:12:47 · 945 阅读 · 0 评论 -
Sereja ans Anagrams - CodeForces 367B 水题
B. Sereja ans Anagramstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSereja has two sequences a and b and原创 2014-08-08 09:51:26 · 512 阅读 · 0 评论 -
Goldbach's Conjecture - POJ 2262 水题
Goldbach's ConjectureTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 37157 Accepted: 14253DescriptionIn 1742, Christian Goldbach, a German amateur mat原创 2014-07-11 15:14:24 · 552 阅读 · 0 评论 -
Self Numbers - POJ 1316 水题
Self NumbersTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 20966 Accepted: 11775DescriptionIn 1949 the Indian mathematician D.R. Kaprekar discovered原创 2014-07-11 13:53:48 · 1753 阅读 · 1 评论 -
Parencodings - POJ 1068 水题
ParencodingsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 19336 Accepted: 11665DescriptionLet S = s1 s2...s2n be a well-formed string of parentheses原创 2014-07-11 13:40:26 · 542 阅读 · 0 评论 -
Speed Limit - POJ 2017 水题
Speed LimitTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 17023 Accepted: 11945DescriptionBill and Ted are taking a road trip. But the odometer in th原创 2014-07-11 13:36:25 · 592 阅读 · 0 评论 -
Literature Lesson - CodeForces 139C 水题
Literature Lessontime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVera adores poems. All the poems Vera kno原创 2014-07-10 21:15:16 · 760 阅读 · 0 评论 -
做一个正气的杭电人 - HDU 2500 水题
做一个正气的杭电人Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7205 Accepted Submission(s): 5811Problem Description做人要有一身正气,杭电学子都应该原创 2014-07-09 15:27:20 · 919 阅读 · 0 评论 -
Mnemonics and Palindromes 3 - URAL 1737 水题
1737. Mnemonics and Palindromes 3Time limit: 1.0 secondMemory limit: 64 MBAs you remember, when Vasechkin was preparing a problem for the latest student contest, he spent a lot of time t原创 2014-07-25 23:04:08 · 736 阅读 · 0 评论 -
BST - POJ 2309 水题
BSTTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 8519 Accepted: 5158DescriptionConsider an infinite full binary search tree (see the figure below),原创 2014-07-25 23:01:13 · 557 阅读 · 0 评论 -
Online Meeting - CodeForces 420B 水题
Online Meetingtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputNearly each project of the F company has a wh原创 2014-07-25 22:55:38 · 591 阅读 · 0 评论 -
Take the Land - UVa 10074 变形最大子矩阵和
Take the LandInput : standard inputOutput : standard output The poor man went to the King and said, “Lord, I cannot maintain my family. Please give me some wealth so that I can survive with my原创 2014-07-07 15:20:51 · 855 阅读 · 0 评论 -
Yogurt factory - POJ 2393 水题
Yogurt factoryTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 6778 Accepted: 3469DescriptionThe cows have purchased a yogurt factory that makes world-原创 2014-10-26 17:12:41 · 513 阅读 · 0 评论 -
Stripies - POJ 1862 水题
StripiesTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 12361 Accepted: 5863DescriptionOur chemical biologists have invented a new very useful form of原创 2014-10-26 19:49:59 · 1003 阅读 · 0 评论 -
Best Cow Line - POJ 3617 水题
Best Cow LineTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 10538 Accepted: 3169DescriptionFJ is about to take his N (1 ≤ N ≤ 2,000) cows to the annu原创 2014-10-27 10:37:38 · 685 阅读 · 0 评论 -
Count The Carries - HDU 4588 水题
Count The CarriesTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1158 Accepted Submission(s): 383Problem DescriptionOne day,原创 2015-05-08 15:18:23 · 434 阅读 · 0 评论 -
Boastin' Red Socks - UVa 10277
题意:共有n个袜子,其中红袜子m只,告诉你拿到两只袜子都是红袜子的概率为p/q,问在袜子数最少的情况下,有多少红袜子,多少黑袜子。思路:m*(m-1) / n*(n-1) =p/q 那么 每次枚举n,可以得到 m*(m-1)= n*(n-1)*p/q,用map存储所有的m可以表示的数量,这样可以快速得到m。AC代码如下:#include#include#include#in原创 2015-03-10 21:53:58 · 429 阅读 · 0 评论 -
Number Sequence - UVa 10706
Number SequenceInput: standard inputOutput: standard outputTime Limit: 1 secondA single positive integer i is given. Write a program to find the digit located in the position i in the sequ原创 2015-02-27 00:31:30 · 436 阅读 · 0 评论 -
A mid-summer night’s dream - UVa 10057 中位数
题意:求使得求差后绝对值和最小的A的最小值,给定数中有多少个可以满足权值最小,有多少数可以满足权值最小。思路:排序后找中位数,如果是奇数,A就是它,如果是偶数,中间两个数之间的值都可以满足权值最小。AC代码如下:#include#include#includeusing namespace std;int n,num[1000010];int main(){ int原创 2015-02-27 00:02:27 · 427 阅读 · 0 评论 -
Drazil and Factorial - CodeForces 513 C 水题
Drazil and Factorialtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputDrazil is playing a math game with Var原创 2015-02-19 18:19:35 · 1126 阅读 · 0 评论 -
Foreign Exchange - UVa 10763 水题
Problem EForeign ExchangeInput: standard inputOutput: standard outputTime Limit: 1 secondYour non-profit organization (iCORE - international Confederation of Revolver Enthusiasts) coordi原创 2015-02-01 16:12:59 · 494 阅读 · 0 评论 -
Anya and Ghosts - CodeForces 508 C 水题
Anya and Ghoststime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAnya loves to watch horror movies. In the b原创 2015-01-29 00:38:00 · 716 阅读 · 0 评论 -
Play with Floor and Ceil - UVa 10673
Problem APlay with Floor and CeilInput: standard inputOutput: standard outputTime Limit: 1 second TheoremFor any two integers x and k there exists two more integers p and q such that:原创 2014-12-18 21:32:24 · 568 阅读 · 0 评论 -
Software CRC - UVa 128 取模
Software CRCYou work for a company which uses lots of personal computers. Your boss, Dr Penny Pincher, has wanted to link the computers together for some time but has been unwilling to spend any原创 2014-12-18 21:12:41 · 553 阅读 · 0 评论 -
Removing Columns - CodeForces 496 C 水题
C. Removing Columnstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given an n × m rectangular tabl原创 2014-12-18 12:30:42 · 730 阅读 · 0 评论 -
Tennis Game - CodeForces 497 B
Tennis Gametime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputPetya and Gena love playing table tennis. A sin原创 2014-12-18 12:39:36 · 971 阅读 · 0 评论 -
Street Numbers - UVa 138 水题
Street NumbersA computer programmer lives in a street with houses numbered consecutively (from 1) down one side of the street. Every evening she walks her dog by leaving her house and randomly t原创 2014-12-16 16:34:46 · 567 阅读 · 0 评论 -
Treasure - CodeForces 494 A 水题
Malek has recently found a treasure map. While he was looking for a treasure he found a locked door. There was a string s written on the door consisting of characters '(', ')' and '#'. Below there原创 2014-12-15 18:13:19 · 652 阅读 · 0 评论 -
Maximum Value - CodeForces 484 B 水题
B. Maximum Valuetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a sequence a consisting of n原创 2014-11-06 10:53:53 · 566 阅读 · 0 评论 -
Bits - CodeForces 484 A 水题
A. Bitstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputLet's denote as the number of bits set ('1' bits)原创 2014-11-06 10:50:17 · 526 阅读 · 0 评论 -
Palindrome Transformation - CodeForces 486 C 水题
Palindrome Transformationtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputNam is playing with a string on hi原创 2014-11-12 19:00:41 · 561 阅读 · 0 评论 -
Magic Number - ZOJ 3622 水题
Magic NumberTime Limit: 2 Seconds Memory Limit: 32768 KBA positive number y is called magic number if for every positive integer x it satisfies that put y to the right of x, which will原创 2014-07-06 17:51:40 · 533 阅读 · 0 评论 -
不要62 - HDU 2089 水题?
不要62Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 18286 Accepted Submission(s): 6102Problem Description杭州人称那些傻乎乎粘嗒嗒的人为62(音:原创 2014-07-05 16:40:07 · 805 阅读 · 0 评论 -
Who's in the Middle - POJ 2388 水题
Who's in the MiddleTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 30908 Accepted: 17934DescriptionFJ is surveying his herd to find the most average c原创 2014-06-26 11:01:28 · 638 阅读 · 0 评论 -
Gold Coins - POJ 2000 水题
Gold CoinsTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 20862 Accepted: 13065DescriptionThe king pays his loyal knight in gold coins. On the first d原创 2014-06-27 22:18:29 · 621 阅读 · 0 评论 -
Rewards - #256 (Div. 2) A (448A)水题
A. Rewardstime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputBizon the Champion is called the Champion for a r原创 2014-07-18 09:04:14 · 650 阅读 · 0 评论