杂
文章平均质量分 56
CHEN_XU_LING
这个作者很懒,什么都没留下…
展开
-
2021-05-30
A simple problemProblem DescriptionZty很痴迷数学问题.。一天,yifenfei出了个数学题想难倒他,让他回答1 / n。但Zty却回答不了_. 请大家编程帮助他.Input第一行整数T,表示测试组数。后面T行,每行一个整数 n (1<=|n|<=10^5).Output输出1/n. (是循环小数的,只输出第一个循环节).Sample Input4237168Sample Output0.50.30.14285原创 2021-05-30 21:27:44 · 111 阅读 · 0 评论 -
HDU1236排名 (结构体排序,sort)
排名Problem Description今天的上机考试虽然有实时的Ranklist,但上面的排名只是根据完成的题数排序,没有考虑每题的分值,所以并不是最后的排名。给定录取分数线,请你写程序找出最后通过分数线的考生,并将他们的成绩按降序打印。Input测试输入包含若干场考试的信息。每场考试信息的第1行给出考生人数N ( 0 < N< 1000 )、考题数M ( 0 < M < = 10 )、分数线(正整数)G;第2行排序给出第1题至第M题的正整数分值;以下N行,每原创 2021-05-29 17:28:28 · 118 阅读 · 0 评论 -
杭电oj 2031进制转换
进制转换Problem Description输入一个十进制数N,将它转换成R进制数输出。Input输入数据包含多个测试实例,每个测试实例包含两个整数N(32位整数)和R(2<=R<=16, R<>10)。Output为每个测试实例输出转换后的数,每个输出占一行。如果R大于10,则对应的数字规则参考16进制(比如,10用A表示,等等)。Sample Input7 223 12-4 3Sample Output1111B-11解题思路:原创 2021-03-10 21:07:33 · 131 阅读 · 0 评论 -
A + B Again 杭电oj 2056 十六进制
Problem DescriptionThere must be many A + B problems in our HDOJ , now a new one is coming.Give you two hexadecimal integers , your task is to calculate the sum of them,and print it in hexadecimal too.Easy ? AC it !InputThe input contains several t原创 2021-03-10 20:34:28 · 126 阅读 · 0 评论 -
杭电oj 2629 (截取字符串)
Identity CardProblem DescriptionDo you own an ID card?You must have a identity card number in your family’s Household Register. From the ID card you can get specific personal information of everyone. The number has 18 bits,the first 17 bits contain spec原创 2021-03-09 17:57:57 · 164 阅读 · 0 评论 -
杭电oj 1197进制问题
Specialized Four-Digit NumbersProblem DescriptionFind and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of its digits when represented in hexadecimal (base 16) notation and also equ原创 2021-03-09 17:04:03 · 245 阅读 · 1 评论 -
杭电 1170 水题
Balloon Comes!Problem DescriptionThe contest starts now! How excited it is to see balloons floating around. You, one of the best programmers in HDU, can get a very beautiful balloon if only you have solved the very very very… easy problem.Give you an o原创 2021-03-08 20:46:04 · 331 阅读 · 0 评论 -
杭电oj 2734 水题
QuicksumProblem DescriptionA checksum is an algorithm that scans a packet of data and returns a single number. The idea is that if the packet is changed, the checksum will also change, so checksums are often used for detecting transmission errors, valid原创 2021-03-08 19:44:40 · 258 阅读 · 0 评论