随笔分类 -  ACM

摘要:Problem Description 根据输入的半径值,计算球的体积。 Input 输入数据有多组,每组占一行,每行包括一个实数,表示球的半径。 Output 输出对应的球的体积,对于每组输入数据,输出一行,计算结果保留三位小数。 Sample Input 1 1.5 1 1.5 Sample O 阅读全文
posted @ 2019-04-22 16:25 Hunter·Zhang 阅读(87) 评论(0) 推荐(0)
摘要:Problem Description 输入两点坐标(X1,Y1),(X2,Y2),计算并输出两点间的距离。 Input 输入数据有多组,每组占一行,由4个实数组成,分别表示x1,y1,x2,y2,数据之间用空格隔开。 Output 对于每组输入数据,输出一行,结果保留两位小数。 Sample In 阅读全文
posted @ 2019-04-18 16:05 Hunter·Zhang 阅读(143) 评论(0) 推荐(0)
摘要:Problem Description 给定两个正整数,计算这两个数的最小公倍数。 Input 输入包含多组测试数据,每组只有一行,包括两个不大于1000的正整数. Output 对于每个测试用例,给出这两个数的最小公倍数,每个实例输出一行。 Sample Input 10 14 10 14 Sam 阅读全文
posted @ 2019-04-17 17:19 Hunter·Zhang 阅读(129) 评论(0) 推荐(0)
摘要:2019.04.16 Problem Description Your task is to Calculate the sum of some integers. Input Input contains multiple test cases. Each test case contains a 阅读全文
posted @ 2019-04-16 22:16 Hunter·Zhang 阅读(101) 评论(0) 推荐(0)
摘要:2019.04.13 第1002题:A+B Proble Ⅱ Problem DescriptionI have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum o 阅读全文
posted @ 2019-04-15 09:53 Hunter·Zhang 阅读(146) 评论(0) 推荐(0)
摘要:2019.4.14 第1001题:Sum Problem Problem DescriptionHey, welcome to HDOJ(Hangzhou Dianzi University Online Judge). In this problem, your task is to calcul 阅读全文
posted @ 2019-04-15 09:51 Hunter·Zhang 阅读(101) 评论(0) 推荐(0)
摘要:2019.04.15 第1000题:A+B Problem Problem DescriptionCalculate A + B. InputEach line will contain two integers A and B. Process to end of file.OutputFor e 阅读全文
posted @ 2019-04-15 09:47 Hunter·Zhang 阅读(140) 评论(0) 推荐(0)