基础杂题
文章平均质量分 83
剑不飞
时刻思考,找准方向,坚定执行,永不服输(AC才是王道。)
展开
-
hdu 4346 The Beautiful Road(思维,枚举,5级)
The Beautiful RoadTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 229 Accepted Submission(s): 122Problem DescriptionThere is原创 2013-06-29 12:33:42 · 854 阅读 · 0 评论 -
CF-63D - Dividing Island(水题)
D - Dividing IslandTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 63DDescriptionA revolution took place on the Buk原创 2013-03-29 10:48:41 · 691 阅读 · 0 评论 -
CF-18D - Seller Bob(贪心+简单大数)
D - Seller BobCrawling in process...Crawling failedTime Limit:2000MS Memory Limit:131072KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 18DDescriptionLast year原创 2013-01-22 16:51:03 · 445 阅读 · 0 评论 -
CF-26C - Parquet(涂色分区)
C - ParquetCrawling in process...Crawling failedTime Limit:2000MSMemory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatus Practice CodeForces 26C DescriptionOnce原创 2013-02-04 22:00:18 · 670 阅读 · 0 评论 -
CF-25C - Roads in Berland(水题)
C - Roads in BerlandCrawling in process...Crawling failedTime Limit:2000MSMemory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatus Practice CodeForces 25C Descriptio原创 2013-02-02 21:40:42 · 978 阅读 · 0 评论 -
CF-14C - Four Segments(几何)
C - Four SegmentsCrawling in process...Crawling failedTime Limit:2000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 14CDescriptionSeveral原创 2013-01-15 13:50:21 · 628 阅读 · 0 评论 -
hdu 1337 The Drunk Jailer(规律)
The Drunk JailerTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 821 Accepted Submission(s): 677Problem DescriptionA certain pri原创 2013-01-29 12:23:08 · 675 阅读 · 0 评论 -
hdu 1015 Safecracker(枚举)
SafecrackerTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5180 Accepted Submission(s): 2600Problem Description=== Op tech brie原创 2013-01-26 19:14:35 · 392 阅读 · 0 评论 -
hdu 1087 Super Jumping! Jumping! Jumping!(dp+最长递增序列)
Super Jumping! Jumping! Jumping!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 14615 Accepted Submission(s): 6145Problem Descrip原创 2013-01-13 10:08:39 · 426 阅读 · 0 评论 -
CF-12E - Start of the season(思维)
E - Start of the seasonCrawling in process...Crawling failedTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeCodeForces 12EDescriptionB原创 2013-01-11 16:49:17 · 477 阅读 · 0 评论 -
hdu 1159 Common Subsequence(DP最长公共子序列)
Common SubsequenceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 14714 Accepted Submission(s): 6106Problem DescriptionA subseq原创 2013-01-25 13:38:23 · 370 阅读 · 0 评论 -
hdu 1158 Employment Planning(DP)
Employment PlanningTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2597 Accepted Submission(s): 1013Problem DescriptionA projec原创 2013-01-25 12:59:11 · 589 阅读 · 0 评论 -
CF-63C - Bulls and Cows(枚举)
C - Bulls and CowsTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 63CDescriptionThe "Bulls and Cows" game needs two原创 2013-03-29 10:54:52 · 877 阅读 · 0 评论 -
CF-51B - bHTML Tables Analisys(easy+栈)
B - bHTML Tables AnalisysTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 51BDescriptionIn this problem is used an e原创 2013-03-20 08:19:09 · 575 阅读 · 0 评论 -
hdu 4523 威威猫系列故事——过生日(简单大数相加比较)
威威猫系列故事——过生日Time Limit: 500/200 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 640 Accepted Submission(s): 160Problem Description 2月29号是威威猫的生日,由于原创 2013-03-26 10:03:27 · 1079 阅读 · 0 评论 -
hdu 4312 Meeting point-2(4级)
Meeting point-2Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 866 Accepted Submission(s): 472Problem DescriptionIt has been ten原创 2013-06-01 09:14:08 · 660 阅读 · 0 评论 -
uva 11384 - Help is needed for Dexter(递推,2级)
Problem HHelp is needed for DexterTime Limit: 3 Second Dexter is tired of Dee Dee. So he decided to keep Dee Dee busy in a game. The game he planned for her is quite easy to play but not easy原创 2013-05-15 18:45:15 · 937 阅读 · 0 评论 -
uva 1030 - Image Is Everything(思维,4级)
Your new company is building a robot that can hold small lightweight objects. The robot will have the intelligence to determine if an object is light enough to hold. It does this by taking pictures of原创 2013-05-14 21:02:51 · 1314 阅读 · 0 评论 -
uva 11464 - Even Parity(3级)
DEven ParityInput: Standard InputOutput: Standard OutputWe have a grid of size N x N. Each cell of the grid initially contains a zero(0) or a one(1). The parity of a cell原创 2013-05-14 21:41:00 · 944 阅读 · 0 评论 -
uva 1388 - Graveyard(思维)
Programming contests became so popular in the year 2397 that the governor of New Earck -- the largest human-inhabited planet of the galaxy -- opened a special Alley of Contestant Memories (ACM) at the原创 2013-05-09 21:38:36 · 1220 阅读 · 0 评论 -
uva 11300 - Spreading the Wealth(思维)
F. Spreading the Wealth ProblemA Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. First, everyone has c原创 2013-05-09 21:23:26 · 933 阅读 · 0 评论 -
uva11729 - Commando War(water)
GCommando WarInput: Standard InputOutput: Standard Output “Waiting for orders we held in the wood, word from the front never cameBy evening the sound of the gunfire was原创 2013-05-09 21:05:09 · 1115 阅读 · 0 评论 -
uva 11292 - Dragon of Loowater
Problem C: The Dragon of LoowaterOnce upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem.The shores of Rellau Creek in central Loowater had always been a prime原创 2013-05-09 20:48:21 · 1023 阅读 · 0 评论 -
uva 10795 - A Different Task(递推,3级)
A Different Task The (Three peg) Tower of Hanoi problem is a popular one in computer science. Briefly the problem is to transfer all the disks from peg-A to peg-C using peg-B as in原创 2013-05-16 17:39:41 · 935 阅读 · 0 评论 -
NEFU 653 Grids(water)
GridsTime Limit 1000msMemory Limit 65536KdescriptionOn an 1 × 1 grid,partition the length and width into 50 parts,forming 2500 unit grids with原创 2013-04-20 19:10:57 · 650 阅读 · 0 评论 -
CF -62B - Tyndex.Brome(二分查找)
B - Tyndex.BromeTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 62BDescriptionTyndex is again well ahead of the rival原创 2013-03-27 11:51:15 · 778 阅读 · 0 评论 -
USACO section3.3 Home on the Range(压缩+枚举)
Home on the RangeFarmer John grazes his cows on a large, square field N (2 <= N <= 250) miles on a side (because, for some reason, his cows will only graze on precisely square land segments). Regr原创 2013-01-06 11:52:18 · 487 阅读 · 0 评论 -
hdu 1007 Quoit Design(平面最近点对)
Quoit DesignTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 17773 Accepted Submission(s): 4563Problem DescriptionHave you ever p原创 2012-11-23 16:27:08 · 725 阅读 · 0 评论 -
USACO section 2.1 Hamming Codes(直接枚举暴搜)
Hamming CodesRob Kolstad Given N, B, and D: Find a set of N codewords (1 <= N <= 64), each of length B bits (1 <= B <= 8), such that each of the codewords is at least Hamming distance of D (1 <= D原创 2012-08-22 10:46:27 · 704 阅读 · 0 评论 -
USACO section 2.1 Ordered Fractions(简单数学求约数加个排序)
Ordered FractionsConsider the set of all reduced fractions between 0 and 1 inclusive with denominators less than or equal to N.Here is the set when N = 5: 0/1 1/5 1/4 1/3 2/5 1/2 3/5 2/3 3/4原创 2012-08-18 20:37:15 · 508 阅读 · 0 评论 -
USACO section 2.1 Sorting a Three-Valued Sequence
Sorting a Three-Valued Sequence IOI'96 - Day 2 Sorting is one of the most frequently performed computational tasks. Consider the special sorting problem in which the records to be sorted have原创 2012-08-15 11:59:45 · 494 阅读 · 0 评论 -
USACO section 1.5 Prime Palindromes(模拟)
Prime PalindromesThe number 151 is a prime palindrome because it is both a prime number and a palindrome (it is the same number when read forward as backward). Write a program that finds all prime pal原创 2012-08-13 11:45:21 · 736 阅读 · 0 评论 -
hdu 1250 Hat's Fibonacci
Hat's FibonacciTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3726 Accepted Submission(s): 1252Problem DescriptionA Fibonacci se原创 2012-07-22 09:24:45 · 1165 阅读 · 0 评论 -
hdu 1042 N!
N!Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 33314 Accepted Submission(s): 9234Problem Description Given an in原创 2012-07-23 18:28:43 · 831 阅读 · 0 评论 -
USCAO section 1.3 Mixing Milk
Mixing MilkSince milk packaging is such a low margin business, it is important to keep the price of the raw product (milk) as low as possible. Help Merry Milk Makers get the milk they need in the原创 2012-07-10 17:17:35 · 488 阅读 · 0 评论 -
hdu 1722 Cake
公式 p+q-gcd(p,q)就是所求值 #include#include#includeusing namespace std;int gcd(int n,int m){ if(m==0) return n; gcd(m,n%m);}int main(){ int m,n; while(cin>>m>>n) {原创 2012-04-28 17:48:27 · 389 阅读 · 0 评论 -
USCAO section 1.1 Transformations
TransformationsA square pattern of size N x N (1 #1: 90 Degree Rotation: The pattern was rotated clockwise 90 degrees. #2: 180 Degree Rotation: The pattern was rotated clockwise 180 degrees. #3: 270原创 2012-04-28 13:48:02 · 478 阅读 · 0 评论 -
hdu 1035 Robot Motion
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3266 Accepted Submission(s): 1519Problem DescriptionA robot has been programmed原创 2012-04-25 16:21:41 · 433 阅读 · 0 评论 -
uscao Section 1.1 Friday the Thirteenth
/*ID:nealgav1PROG:fridayLANG:C++*/#include#include#define N 403int week[N][7];void search(){ memset(week,0,sizeof(week)); int i,j,k,year,ri,count=0; bool flag=0; for(i=1900,year=0;i<190原创 2012-04-11 20:29:24 · 398 阅读 · 0 评论 -
USACO section 2.2 Runaround Numbers
Runaround NumbersRunaround numbers are integers with unique digits, none of which is zero (e.g., 81362) that also have an interesting property, exemplified by this demonstration:If you start原创 2012-08-31 21:39:58 · 917 阅读 · 0 评论