随笔分类 -  水题

历届试题 回文数字
摘要:历届试题 回文数字 时间限制:1.0s 内存限制:256.0MB问题描述 观察数字:12321,123321 都有一个共同的特征,无论从左到右读还是从右向左读,都是相同的。这样的数字叫做:回文数字。 本题要求你找到一些5位或6位的十进制数字。满足如下要求: 该数字的各个数位之和等于输入的整数。输入格式 一个正整数 n (10>n){ //5位; int cnt = 0; repf(i,0,9) //枚举中间数 { int l = n - i; if(l 9 || l - j < 0) ... 阅读全文

posted @ 2014-04-06 23:07 keep trying 阅读(552) 评论(0) 推荐(0)

B. Valera and Contest 构造水题
摘要:B. Valera and Contesttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputValera loves to participate in competitions. Especially in programming contests. Today he has participated in the contest with his team, consisting ofnstudents (including Valera) 阅读全文

posted @ 2013-11-30 21:09 keep trying 阅读(165) 评论(0) 推荐(0)

H - New Year Cruise 略水
摘要:H -New Year CruiseTime Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusPracticeURAL 1869DescriptionAnd I drank it straight down.In the life of Russian people there is always a place for a holiday! Even more so when several causes for celebration follow each other— New Ye 阅读全文

posted @ 2013-11-28 20:02 keep trying 阅读(188) 评论(0) 推荐(0)

B. Sereja and Suffixes 水题
摘要:B. Sereja and Suffixestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputSereja has an arraya, consisting ofnintegersa1,a2,...,an. The boy cannot sit and do nothing, he decided to study an array. Sereja took a piece of paper and wrote outmintegersl1, 阅读全文

posted @ 2013-11-27 12:31 keep trying 阅读(258) 评论(0) 推荐(0)

A. Soroban 暴力+水题
摘要:A. Sorobantime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou know that Japan is the country with almost the largest 'electronic devices per person' ratio. So you might be quite surprised to find out that the primary school in Japan teache 阅读全文

posted @ 2013-11-11 21:23 keep trying 阅读(277) 评论(0) 推荐(0)

B. Fence 前缀和 水题
摘要:B. Fencetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere is a fence in front of Polycarpus's home. The fence consists ofnplanks of the same width which go one after another from left to right. The height of thei-th plank ishimeters, disti 阅读全文

posted @ 2013-11-11 21:22 keep trying 阅读(363) 评论(0) 推荐(0)

威威猫系列故事——过生日 HDU 4523
摘要:威威猫系列故事——过生日Time Limit: 500/200 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1075Accepted Submission(s): 295Problem Description 2月29号是威威猫的生日,由于这个日子非常特殊,4年才一次,所以生日这天许多朋友都前往威威猫家祝贺他的生日。 大家给威威猫买了一个非常大非常大的蛋糕,蛋糕的形状是一个有n条边的凸多边形,可是威威猫的审美观有一点奇怪,他只喜欢有m条边的蛋糕,所以他要伙伴们把这个蛋糕切p次,然.. 阅读全文

posted @ 2013-10-08 13:03 keep trying 阅读(233) 评论(0) 推荐(0)

An Easy Task HDU 1076
摘要:An Easy TaskTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 11906Accepted Submission(s): 7509Problem DescriptionIgnatius was born in a leap year, so he want to know when he could hold his birthday party. Can you tell him?Given a positive integers Y 阅读全文

posted @ 2013-10-08 12:36 keep trying 阅读(183) 评论(0) 推荐(0)

导航