水题
文章平均质量分 53
Zhac
菜菜菜
展开
-
hdoj2051Bitset
Problem DescriptionGive you a number on base ten,you should output it on base two.(0 InputFor each case there is a postive number n on base ten, end of file. OutputFor each case out原创 2016-01-19 20:22:44 · 449 阅读 · 0 评论 -
CodeForces612BHDD is Outdated Technology(sort,结构体,水题)
DescriptionHDD hard drives group data by sectors. All files are split to fragments and each of them are written in some sector of hard drive. Note the fragments can be written in sectors in arbitrar原创 2016-07-21 20:23:12 · 194 阅读 · 0 评论 -
CodeForces615ABulbs(水题)
DescriptionVasya wants to turn on Christmas lights consisting of m bulbs. Initially, all bulbs are turned off. There are n buttons, each of them is connected to some set of bulbs. Vasya can press an原创 2016-07-21 20:12:42 · 381 阅读 · 0 评论 -
CodeForces 610APasha and Stick(数学)
DescriptionPasha has a wooden stick of some positive integer length n. He wants to perform exactly three cuts to get four parts of the stick. Each part must have some positive integer length and the原创 2016-07-21 15:25:22 · 334 阅读 · 0 评论 -
CodeForces 638 A Home Numbers(数学,水题)
DescriptionThe main street of Berland is a straight line with n houses built along it (n is an even number). The houses are located at both sides of the street. The houses with odd numbers are at on原创 2016-05-30 19:01:34 · 284 阅读 · 0 评论 -
求和减2的次方
DescriptionIn this problem you are to calculate the sum of all integers from 1 to n, but you should take all powers of two with minus in the sum.For example, for n = 4 the sum is equal to - 1 -原创 2016-05-30 20:28:30 · 556 阅读 · 0 评论 -
LightOJ 1294:Positive Negative Sign(数学)
DescriptionGiven two integers: n and m and n is divisible by 2m, you have to write down the first n natural numbers in the following form. At first take first m integers and make their sign negative原创 2016-05-31 14:07:20 · 323 阅读 · 0 评论 -
hdoj 计算球体积(数学水题)
Font Size: ← →Problem Description根据输入的半径值,计算球的体积。 Input输入数据有多组,每组占一行,每行包括一个实数,表示球的半径。 Output输出对应的球的体积,对于每组输入数据,输出一行,计算结果保留三位小数。 Sample Input11.5Sample Output4.18914.137H原创 2015-11-17 15:43:46 · 589 阅读 · 0 评论 -
hdoj 计算两点之间的距离(数学水题)
Problem Dscription 输入两点坐标(X1,Y1),(X2,Y2),计算并输出两点间的距离。 Input 输入数据有多组,每组占一行,由4个实数组成,分别表示x1,y1,x2,y2,数据之间用空格隔开。 Output 对于每组输入数据,输出一行,结果保留两位小数。 Sample Input 0 0 0 1 0 1 1 0 Sample Output 1.00 1.41 Author原创 2015-11-17 14:23:59 · 328 阅读 · 0 评论 -
hdojBiker's Trip Odometer(水题)
Problem DescriptionMost bicycle speedometers work by using a Hall Effect sensor fastened to the front fork of the bicycle. A magnet is attached to one of the spokes on the front wheel so that it wil原创 2016-07-23 20:17:00 · 323 阅读 · 0 评论 -
CodeForces 96AFootball
DescriptionPetya loves football very much. One day, as he was watching a football match, he was writing the players' current positions on a piece of paper. To simplify the situation he depicted it原创 2016-05-22 13:32:15 · 291 阅读 · 0 评论 -
CodeForces 84AToy Army
DescriptionThe hero of our story, Valera, and his best friend Arcady are still in school, and therefore they spend all the free time playing turn-based strategy "GAGA: Go And Go Again". The gamepl原创 2016-05-22 13:30:29 · 256 阅读 · 0 评论 -
hdoj1994利息计算
Description为自行解决学费,chx勤工俭学收入10000元以1年定期存入银行,年利率为3.7% 。利率 按年计算,表示100元存1年的利息为3.7元.实际上有时提前有时推迟取,因此实际利息按天 计算,1年按365天计算,因此Q天的利息是 本金*3.7/100 *Q/365 存了100天后1年定期年利息提高到3.9%。如将存款提前全取出,再存1年定期。那么前面的原创 2016-01-13 19:19:16 · 392 阅读 · 0 评论 -
hdoj2043密码
Problem Description网上流传一句话:"常在网上飘啊,哪能不挨刀啊~"。其实要想能安安心心地上网其实也不难,学点安全知识就可以。首先,我们就要设置一个安全的密码。那什么样的密码才叫安全的呢?一般来说一个比较安全的密码至少应该满足下面两个条件:(1).密码长度大于等于8,且不要超过16。(2).密码中的字符应该来自下面“字符类别”中四组中的至少三组。原创 2016-01-10 19:34:55 · 428 阅读 · 0 评论 -
hdoj2042不容易系列之二
Problem Description你活的不容易,我活的不容易,他活的也不容易。不过,如果你看了下面的故事,就会知道,有位老汉比你还不容易。重庆市郊黄泥板村的徐老汉(大号徐东海,简称XDH)这两年辛辛苦苦养了不少羊,到了今年夏天,由于众所周知的高温干旱,实在没办法解决牲畜的饮水问题,就决定把这些羊都赶到集市去卖。从黄泥板村到交易地点要经过N个收费站,按说这收费站和徐老汉没什么关系,但原创 2016-01-10 19:18:04 · 279 阅读 · 0 评论 -
hdoj2039三角形
Problem Description给定三条边,请你判断一下能不能组成一个三角形。 Input输入数据第一行包含一个数M,接下有M行,每行一个实例,包含三个正数A,B,C。其中A,B,C Output对于每个测试实例,如果三条边长A,B,C能组成三角形的话,输出YES,否则NO。 Sample Input21 2 32 2 2原创 2016-01-09 20:16:23 · 538 阅读 · 0 评论 -
hdoj2033人见人爱A+B
Problem DescriptionHDOJ上面已经有10来道A+B的题目了,相信这些题目曾经是大家的最爱,希望今天的这个A+B能给大家带来好运,也希望这个题目能唤起大家对ACM曾经的热爱。这个题目的A和B不是简单的整数,而是两个时间,A和B 都是由3个整数组成,分别表示时分秒,比如,假设A为34 45 56,就表示A所表示的时间是34小时 45分钟 56秒。 Input原创 2015-12-20 21:47:00 · 561 阅读 · 0 评论 -
LightOJ 1043Triangle Partitioning(数学)
DescriptionSee the picture below.You are given AB, AC and BC. DE is parallel to BC. You are also given the area ratio between ADE and BDEC. You have to find the value of AD.InputInput原创 2016-08-24 09:01:50 · 258 阅读 · 0 评论