杂
文章平均质量分 56
CHEN_XU_LING
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
2021-05-30
A simple problem Problem Description Zty很痴迷数学问题.。一天,yifenfei出了个数学题想难倒他,让他回答1 / n。但Zty却回答不了_. 请大家编程帮助他. Input 第一行整数T,表示测试组数。后面T行,每行一个整数 n (1<=|n|<=10^5). Output 输出1/n. (是循环小数的,只输出第一个循环节). Sample Input 4 2 3 7 168 Sample Output 0.5 0.3 0.14285原创 2021-05-30 21:27:44 · 246 阅读 · 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 · 208 阅读 · 0 评论 -
杭电oj 2031进制转换
进制转换 Problem Description 输入一个十进制数N,将它转换成R进制数输出。 Input 输入数据包含多个测试实例,每个测试实例包含两个整数N(32位整数)和R(2<=R<=16, R<>10)。 Output 为每个测试实例输出转换后的数,每个输出占一行。如果R大于10,则对应的数字规则参考16进制(比如,10用A表示,等等)。 Sample Input 7 2 23 12 -4 3 Sample Output 111 1B -11 解题思路:原创 2021-03-10 21:07:33 · 215 阅读 · 0 评论 -
A + B Again 杭电oj 2056 十六进制
Problem Description There 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 ! Input The input contains several t原创 2021-03-10 20:34:28 · 242 阅读 · 0 评论 -
杭电oj 2629 (截取字符串)
Identity Card Problem Description Do 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 · 275 阅读 · 0 评论 -
杭电oj 1197进制问题
Specialized Four-Digit Numbers Problem Description Find 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 · 390 阅读 · 1 评论 -
杭电 1170 水题
Balloon Comes! Problem Description The 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 · 428 阅读 · 0 评论 -
杭电oj 2734 水题
Quicksum Problem Description A 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 · 382 阅读 · 0 评论
分享