![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
本渣渣水过的题||--
文章平均质量分 70
idealistic
编程渣渣~~
展开
-
七夕节
七夕节Crawling in process...Crawling failedTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatus DescriptionInputOutputSa原创 2016-11-08 14:58:41 · 171 阅读 · 0 评论 -
**【HPUOJ】
Bet时间限制: 1 Sec 内存限制: 128 MB提交: 10 解决: 5题目描述Josnch星球是一个赌博之风盛行的星球。每个人一出生就有一定数额的钱,之后的所有收入只能由赌博获得(OMG,如果RP不好,输光了所有的钱。。。)假设赌博公司的某场赌博有 N 个结果,每个结果能获得的赔率比分别是 a[1],a[2]...a[N]。假设现在XXX有 X原创 2017-02-22 21:24:37 · 457 阅读 · 0 评论 -
直线上的点
D - DTime Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmit StatusDescription"How am I ever going to solve this problem?" said the pilot. Indeed,原创 2017-03-08 16:25:42 · 532 阅读 · 0 评论 -
【玲珑】1099
Submissions:433Solved:262DESCRIPTION给一个数x,定义一个函数f(x)的结果是x的各位数字的平方和,若经过无数次递归操作之后若结果为1,也就是f(f(f(...f(x)...)))=1,那么这个数被认为是一个特别的数。给出一个数x请问这个数是否特别。INPUT包含多组测试数据(原创 2017-03-05 19:48:24 · 230 阅读 · 0 评论 -
【codeforces】Round #402 Div.2 A
题意:有A B两个组,各有n个人,每个人的分数为1---5,交换两组学生,使两组出现的数相等 统计每个数总共出现的次数,平分就是每个数在一组中应该出现的次数,分别遍历两组,统计每组多余的数的个数,取较小值code:#include#include#includeusing namespace std;int main(){ int n; int a[11原创 2017-02-27 11:01:32 · 230 阅读 · 0 评论 -
【codeforce】403 Div.2 A Andryusha and Socks
A. Andryusha and Sockstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAndryusha is an orderly boy and likes to keep原创 2017-03-06 17:34:33 · 290 阅读 · 0 评论 -
规律题
DescriptionYuta gives Rikka a chess board of size $n \times m$. As we all know, on a chess board, every cell is either black or white and every two cells that share a side have different color原创 2017-03-06 21:06:44 · 452 阅读 · 0 评论 -
【杭电】5443 水题
L - LCrawling in process...Crawling failedTime Limit:1000MS Memory Limit:131072KB 64bit IO Format:%I64d & %I64u SubmitStatus DescriptionIn Land waterless, water is a v原创 2017-03-10 17:08:34 · 268 阅读 · 0 评论 -
【杭电】5660正多边形
C - CCrawling in process...Crawling failedTime Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64uSubmitStatus DescriptionjrMz has two types of angles, one原创 2017-03-14 17:25:17 · 293 阅读 · 0 评论 -
【codeforce】A. Anastasia and pebbles
A. Anastasia and pebblestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAnastasia loves going for a walk in Central U原创 2017-03-31 19:53:06 · 833 阅读 · 0 评论 -
【牛客】星际穿越
航天飞行器是一项复杂而又精密的仪器,飞行器的损耗主要集中在发射和降落的过程,科学家根据实验数据估计,如果在发射过程中,产生了 x 程度的损耗,那么在降落的过程中就会产生 x2 程度的损耗,如果飞船的总损耗超过了它的耐久度,飞行器就会爆炸坠毁。问一艘耐久度为 h 的飞行器,假设在飞行过程中不产生损耗,那么为了保证其可以安全的到达目的地,只考虑整数解,至多发射过程中可以承受多少程度的损耗?输入原创 2017-09-23 21:18:45 · 190 阅读 · 0 评论 -
【南阳】字符串匹配
Binary String Matching时间限制:3000 ms | 内存限制:65535 KB难度:3描述题目链接Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell how many times does A appear原创 2017-09-17 09:24:41 · 276 阅读 · 0 评论 -
【HD水】A+B
题目链接#includeint main() { int s1,s2; int t; scanf("%d",&t); while(t--){ int a,b; scanf("%d%d",&a,&b); s1=a/10%10*10+a%10; s2=b/10%10*10+b%10; int s=s1+s2; int num=s/10%10*10+s%10;原创 2017-09-17 09:55:20 · 465 阅读 · 0 评论 -
【HPUOJ】Two Bags of Bread
问题 G: Two Bags of Bread时间限制: 5 Sec 内存限制: 128 MB提交: 12 解决: 6题目描述n/k Lialosiu喜欢吃男饭面包店的面包,曾经创下一天吃15袋面包的记录。校庆那天,Lialosiu又去买了两袋面包,第一袋有x(x>=1)个面包,第二袋有y(y>=1)个面包。他是一个很粗心的人,以至于他把第一袋面包弄丢了。幸好他原创 2017-02-22 20:33:17 · 594 阅读 · 0 评论 -
【HPUOJ】Divide the pears (poj1664)
问题 D: Divide the pears时间限制: 1 Sec 内存限制: 128 MB提交: 11 解决: 11题目描述Macro非常喜欢吃梨,有一天他得到了ACMICPC组委会送给他的一筐梨子。他比较心疼学生,就打算把梨子分给学生吃。现在他要把M个梨子放到N个盘子里面 (我们允许有的盘子为空) ,你能告诉Macro有多少种分法吗?(请注意,如果有三个盘子,我原创 2017-02-22 18:45:58 · 279 阅读 · 0 评论 -
【杭电6011】BC-Lotus and Characters
sort +结构体原创 2017-01-21 20:39:44 · 228 阅读 · 0 评论 -
hiho密码(水)
hiho密码Time Limit:10000MS Memory Limit:262144KB 64bit IO Format:%lld & %lluSubmit StatusDescription小Ho根据最近在密码学课上学习到的知识,开发出了一款hiho密码,这款密码的秘钥是这样生成的:对于一种有N个字母的语言,选择一个长度为M的单词;将组原创 2016-11-01 15:51:50 · 502 阅读 · 0 评论 -
【codeforce246B】
D - Increase and DecreasePolycarpus has an array, consisting of n integersa1, a2, ..., an. Polycarpus likes it when numbers in an array match. That's why he wants the array to have as many equal原创 2016-12-10 19:44:57 · 264 阅读 · 0 评论 -
java-A+B【NEUQACM】
1002: A+B(基本输入输出2)时间限制: 1 Sec 内存限制: 128 MB提交: 979 解决: 668[提交][状态][讨论版]题目描述输入两个数A,B,输出A+B的值。输入第一行是数据的组数N,从第二行开始是N组由两个整数(a和b)构成的数据,a和b之间用空格隔开,每组输入单独占一行输出每组的两个整数(a和b)求和并原创 2016-12-11 11:14:09 · 1143 阅读 · 0 评论 -
java-hiho1000A+B
#1000 : A + B时间限制:1000ms单点时限:1000ms内存限制:256MB描述求两个整数A+B的和输入输入包含多组数据。每组数据包含两个整数A(1 ≤ A ≤ 100)和B(1 ≤ B ≤ 100)。输出对于每组数据输出A+B的和。样例输入1 23 4样例输出37code:原创 2016-12-11 12:57:18 · 318 阅读 · 0 评论 -
【图灵杯】一个简单的问题
题目描述这是一个三层的字母塔。如何输出一个任意层数的字母塔呢?输入一个数字n(1输出n层的字母塔样例输入4样例输出 A ABA ABCBAABCDCBAcode:#include#includeint main(){ int n,t; while(~scanf("%d",&原创 2016-11-19 22:41:01 · 1387 阅读 · 0 评论 -
【codeforces】C - Buggy Sorting
C - Buggy SortingLittle boy Valera studies an algorithm of sorting an integer array. After studying the theory, he went on to the practical tasks. As a result, he wrote a program that sorts an arr原创 2016-12-06 15:47:38 · 273 阅读 · 0 评论 -
产生随机数
Online JudgeOnline ExerciseOnline TeachingOnline ContestsExercise AuthorF.A.QHand In HandOnline AcmersForum | DiscussStatistical ChartsProblem ArchiveRealtime Judge Statu原创 2016-12-18 10:33:03 · 293 阅读 · 0 评论 -
【code force】模拟 746C
The tram in Berland goes along a straight line from the point 0 to the point s and back, passing 1 meter per t1 seconds in both directions. It means that the tram is always in the state of uniform r原创 2016-12-20 19:56:35 · 313 阅读 · 0 评论 -
630A
The HR manager was disappointed again. The last applicant failed the interview the same way as 24 previous ones. "Do I give such a hard task?" — the HR manager thought. "Just raise number5 to the po原创 2017-01-16 10:59:30 · 287 阅读 · 0 评论 -
630C-
The numbers of all offices in the new building of the Tax Office of IT City will have lucky numbers.Lucky number is a number that consists of digits 7 and8 only. Find the maximum number of offices原创 2017-01-16 18:57:02 · 217 阅读 · 0 评论 -
君的圆锥(水)
1629B君的圆锥基准时间限制:1 秒 空间限制:131072 KB 分值:10难度:2级算法题 收藏 关注 取消关注B君要用一个表面积为S的圆锥将白山云包起来。B君希望包住的白山云体积尽量大,B君想知道体积最大可以是多少。注意圆锥的表面积包括底面和侧面。Input一行一个整数,表示表面积S。(原创 2017-02-28 17:37:29 · 535 阅读 · 0 评论 -
【杭电5835】Danganronpa
DanganronpaTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 717 Accepted Submission(s): 510Problem DescriptionChisa Yukizome works原创 2017-02-10 17:18:06 · 278 阅读 · 0 评论 -
【水题】sort+结构体
1031: 排序 [水题]时间限制: 1 Sec 内存限制: 128 MB提交: 145 解决: 51 统计题目描述有若干个同学的成绩单,形式如下:姓名 语文成绩 数学成绩 英语成绩 颜值 ... QAQ 59 59 59 100 .........现在我想把这些同学的成绩按照一定顺序排列出来,请你帮帮我吧。原创 2017-12-04 09:49:41 · 287 阅读 · 0 评论