
周练3
文章平均质量分 69
有梦就不怕痛
这个作者很懒,什么都没留下…
展开
-
hiho-【机会渺茫】
机会渺茫Time Limit:5000MS Memory Limit:262144KB 64bit IO Format:%lld & %lluSubmit StatusDescription小Hi最近在追求一名学数学的女生小Z。小Z其实是想拒绝他的,但是找不到好的说辞,于是提出了这样的要求:对于给定的两个正整数N和M,小Hi随机选取一个N原创 2016-11-05 17:28:44 · 653 阅读 · 1 评论 -
hdoj-【2050 折线分割平面】
折线分割平面Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 27598 Accepted Submission(s): 18752Problem Description我们看到过很多直线分割平面的题目,原创 2016-12-05 13:03:57 · 349 阅读 · 0 评论 -
hdoj-【2049 不容易系列之(4)——考新郎】
不容易系列之(4)——考新郎Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 34292 Accepted Submission(s): 12534Problem Description国庆期间,省城HZ原创 2016-12-06 13:45:27 · 545 阅读 · 0 评论 -
hdoj--【2045 不容易系列之(3)—— LELE的RPG难题】
不容易系列之(3)—— LELE的RPG难题Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 48714 Accepted Submission(s): 19470Problem Description人原创 2016-12-06 20:14:53 · 351 阅读 · 0 评论 -
zoj-【2850 】
Beautiful MeadowTom has a meadow in his garden. He divides it into N * M squares. Initially all the squares were covered with grass. He mowed down the grass on some of the squares and thinks the m原创 2016-12-13 14:36:23 · 625 阅读 · 0 评论 -
zoj-【2857 Image Transformation 】
Image TransformationTime Limit: 2 Seconds Memory Limit: 65536 KBThe image stored on a computer can be represented as a matrix of pixels. In the RGB (Red-Green-Blue) color system, a pixel原创 2016-12-13 16:35:49 · 590 阅读 · 0 评论 -
hdoj-【2124 Repair the Wall】
Repair the WallTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3820 Accepted Submission(s): 1909Problem DescriptionLong time原创 2016-12-13 17:07:52 · 387 阅读 · 0 评论 -
cf-【Hopscotch】
B. Hopscotchtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSo nearly half of the winter is over and Maria原创 2016-12-07 17:09:30 · 346 阅读 · 0 评论 -
Increase and Decrease
Polycarpus has an array, consisting of n integers a1, a2, ..., an. Polycarpus likes it when numbers in an array match. That's why he wants the array to have as many equal numbers as possible. For th原创 2016-12-07 22:43:04 · 656 阅读 · 0 评论 -
hdoj 5630-Rikka with Chess
Rikka with ChessTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 871 Accepted Submission(s): 731Problem DescriptionYuta gives Rikk原创 2017-03-07 17:38:22 · 276 阅读 · 0 评论 -
蓝桥杯-方格填数
方格填数如下的10个格子 +--+--+--+ | | | |+--+--+--+--+| | | | |+--+--+--+--+| | | |+--+--+--+(如果显示有问题,也可以参看【图1.jpg】)填入0~9的数字。要求:连续的两个数字不能相邻。(左右、上下、对角都算相邻)一共有多少种可能的填原创 2017-03-12 15:41:34 · 2210 阅读 · 0 评论 -
蓝桥杯 奖券数目
奖券数目有些人很迷信数字,比如带“4”的数字,认为和“死”谐音,就觉得不吉利。虽然这些说法纯属无稽之谈,但有时还要迎合大众的需求。某抽奖活动的奖券号码是5位数(10000-99999),要求其中不要出现带“4”的号码,主办单位请你计算一下,如果任何两张奖券不重号,最多可发出奖券多少张。请提交该数字(一个整数),不要写任何多余的内容或说明性文字。#include原创 2017-03-29 19:37:24 · 410 阅读 · 0 评论 -
蓝桥杯 星系炸弹
星系炸弹在X星系的广袤空间中漂浮着许多X星人造“炸弹”,用来作为宇宙中的路标。每个炸弹都可以设定多少天之后爆炸。比如:阿尔法炸弹2015年1月1日放置,定时为15天,则它在2015年1月16日爆炸。有一个贝塔炸弹,2014年11月9日放置,定时为1000天,请你计算它爆炸的准确日期。请填写该日期,格式为 yyyy-mm-dd 即4位年份2位月份2位日期。比如:20原创 2017-03-29 19:40:16 · 928 阅读 · 0 评论 -
蓝桥杯 三羊献瑞
三羊献瑞观察下面的加法算式: 祥 瑞 生 辉 + 三 羊 献 瑞------------------- 三 羊 生 瑞 气(如果有对齐问题,可以参看【图1.jpg】)其中,相同的汉字代表相同的数字,不同的汉字代表不同的数字。请你填写“三羊献瑞”所代表的4位数字(答案唯一),不要填写任何多余内容。原创 2017-03-29 21:08:22 · 320 阅读 · 0 评论 -
蓝桥杯 加法变乘法
加法变乘法我们都知道:1+2+3+ ... + 49 = 1225现在要求你把其中两个不相邻的加号变成乘号,使得结果为2015比如:1+2+3+...+10*11+12+...+27*28+29+...+49 = 2015就是符合要求的答案。请你寻找另外一个可能的答案,并把位置靠前的那个乘号左边的数字提交(对于示例,就是提交10)。注原创 2017-03-29 21:31:40 · 450 阅读 · 0 评论 -
蓝桥杯 牌型种数
牌型种数小明被劫持到X赌城,被迫与其他3人玩牌。一副扑克牌(去掉大小王牌,共52张),均匀发给4个人,每个人13张。这时,小明脑子里突然冒出一个问题:如果不考虑花色,只考虑点数,也不考虑自己得到的牌的先后顺序,自己手里能拿到的初始牌型组合一共有多少种呢?请填写该整数,不要填写任何多余的内容或说明文字。先说一下这道题目的解题思路吧,其实就是一共13原创 2017-03-30 17:15:25 · 849 阅读 · 0 评论 -
蓝桥杯 移动距离
移动距离X星球居民小区的楼房全是一样的,并且按矩阵样式排列。其楼房的编号为1,2,3...当排满一行时,从下一行相邻的楼往反方向排号。比如:当小区排号宽度为6时,开始情形如下:1 2 3 4 5 612 11 10 9 8 713 14 15 .....我们的问题是:已知了两个楼号m和n,需要求出它们之间的最短移动距离(不能斜线方向原创 2017-03-30 17:56:32 · 814 阅读 · 0 评论 -
蓝桥杯 九数组分数
九数组分数1,2,3...9 这九个数字组成一个分数,其值恰好为1/3,如何组法?下面的程序实现了该功能,请填写划线部分缺失的代码。#include void test(int x[]){int a = x[0]*1000 + x[1]*100 + x[2]*10 + x[3];int b = x[4]*10000 + x[5]*1000原创 2017-03-31 21:20:42 · 2125 阅读 · 0 评论 -
hdoj-【1021 Fibonacci Again】
Fibonacci AgainTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 56345 Accepted Submission(s): 26411Problem DescriptionThere ar原创 2016-12-05 12:44:09 · 359 阅读 · 0 评论 -
cf-【Young Table 】
Young Table You've got table a, consisting of n rows, numbered from 1 to n. The i-th line of table a contains ci cells, at that for all i (1 i ≤ n) holds ci ≤ ci - 1.Let's denote s as th原创 2016-12-11 17:39:34 · 457 阅读 · 0 评论 -
lightoj-【Consistent Verdicts】
Consistent VerdictsTime Limit:5000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit StatusDescriptionIn a 2D plane N persons are standing and each of them has a gun i原创 2016-11-06 19:55:21 · 306 阅读 · 0 评论 -
HDOJ-【1215 七夕节】
七夕节Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 42519 Accepted Submission(s): 13510Problem Description七夕节那天,月老来到数字王国,他在城门上贴了一张原创 2016-11-08 15:23:21 · 304 阅读 · 0 评论 -
HDOJ-【2601 An easy problem】
An easy problemTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 9301 Accepted Submission(s): 2293Problem DescriptionWhen Teddy was原创 2016-10-06 13:44:26 · 320 阅读 · 0 评论 -
poj-【1942 Paths on a Grid】
Paths on a GridTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 24889 Accepted: 6189DescriptionImagine you are attending your math lesson at school. Once原创 2016-10-06 15:07:09 · 213 阅读 · 0 评论 -
【Primes on Interval】
Primes on IntervalTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionYou've decided to carry out a survey in the theory of prime n原创 2016-10-19 13:06:23 · 779 阅读 · 0 评论 -
hdoj-【1847 Good Luck in CET-4 Everybody!】
Good Luck in CET-4 Everybody!Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8747 Accepted Submission(s): 5667Problem Description原创 2016-10-06 15:53:00 · 284 阅读 · 0 评论 -
hdoj-【1005 Number Sequence】
Number SequenceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 158426 Accepted Submission(s): 38802Problem DescriptionA numbe原创 2016-11-11 22:06:14 · 280 阅读 · 0 评论 -
cf-【Non-square Equation】
Non-square EquationTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionLet's consider equation:x2 + s(x)·x - n = 0, where x, n原创 2016-11-12 00:08:40 · 437 阅读 · 0 评论 -
hiho密码
C - hiho密码Time Limit:10000MS Memory Limit:262144KB 64bit IO Format:%lld & %lluSubmit StatusDescription小Ho根据最近在密码学课上学习到的知识,开发出了一款hiho密码,这款密码的秘钥是这样生成的:对于一种有N个字母的语言,选择一个长度为M的单原创 2016-10-31 23:45:51 · 605 阅读 · 0 评论 -
hdoj-【1058 Humble Numbers】
Humble NumbersTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 24459 Accepted Submission(s): 10723Problem DescriptionA number原创 2016-11-13 18:05:35 · 331 阅读 · 0 评论 -
hdoj-【1568 Fibonacci】
FibonacciTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4904 Accepted Submission(s): 2283Problem Description2007年到来了。经过2006年原创 2016-11-13 18:09:20 · 311 阅读 · 0 评论 -
hdoj-【1214 圆桌会议】
圆桌会议Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4680 Accepted Submission(s): 3285Problem DescriptionHDU ACM集训队的队员在暑假集训时经常原创 2016-11-13 20:32:31 · 518 阅读 · 0 评论 -
hdoj-【1175 连连看】
连连看Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 32153 Accepted Submission(s): 7927Problem Description“连连看”相信很多人都玩过。没玩过也没原创 2016-11-13 23:36:20 · 415 阅读 · 0 评论 -
Codeforces -【246C Beauty Pageant】
C. Beauty Pageanttime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputGeneral Payne has a battalion of n soldie原创 2016-12-10 16:25:44 · 457 阅读 · 0 评论 -
hdoj-【2527 Safe Or Unsafe】
Safe Or UnsafeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2394 Accepted Submission(s): 989Problem DescriptionJavac++ 一天在看原创 2016-12-10 22:38:35 · 410 阅读 · 0 评论 -
hdoj-【2717 Catch That Cow】
Catch That CowTime Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 12921 Accepted Submission(s): 3989Problem DescriptionFarmer Joh原创 2016-11-19 12:06:31 · 309 阅读 · 0 评论 -
cf-【Queue 】
In the Main Berland Bank n people stand in a queue at the cashier, everyone knows his/her height hi, and the heights of the other people in the queue. Each of them keeps in mind number ai — how many原创 2016-12-11 11:00:09 · 672 阅读 · 0 评论 -
蓝桥杯 格子中输出
格子中输出StringInGrid函数会在一个指定大小的格子中打印指定的字符串。要求字符串在水平、垂直两个方向上都居中。如果字符串太长,就截断。如果不能恰好居中,可以稍稍偏左或者偏上一点。下面的程序实现这个逻辑,请填写划线部分缺少的代码。#include #include void StringInGrid(int width, in原创 2017-03-31 20:47:54 · 753 阅读 · 0 评论