
----ACM 简单数学题
金甲虫Scarb
这个作者很懒,什么都没留下…
展开
-
HDU ACM 3177 Crixalis's Equipment [贪心][差值排序]
Problem Description Crixalis - Sand King used to be a giant scorpion(蝎子) in the deserts of Kalimdor. Though he’s a guardian of Lich King now, he keeps the living habit of a scorpion like living u原创 2015-12-08 10:39:48 · 476 阅读 · 0 评论 -
HDU ACM 1717 小数化分数2 [数学题]
原题描述Problem Description Ray 在数学课上听老师说,任何小数都能表示成分数的形式,他开始了化了起来,很快他就完成了,但他又想到一个问题,如何把一个循环小数化成分数呢? 请你写一个程序不但可以将普通小数化成最简分数,也可以把循环小数化成最简分数。Input 第一行是一个整数N,表示有多少组数据。 每组数据只有一个纯小数,也就是整数部分为0。小数的位数不超过原创 2015-12-14 10:34:02 · 972 阅读 · 0 评论 -
HDU ACM 2138 How many prime numbers
原题描述Problem Description Give you a lot of positive integers, just to find out how many prime numbers there are.Input There are a lot of cases. In each case, there is an integer N representing the原创 2015-11-29 01:06:52 · 501 阅读 · 0 评论 -
HDU ACM 1071 The area [数学题]
原题描述Problem Description Ignatius bought a land last week, but he didn’t know the area of the land because the land is enclosed by a parabola and a straight line. The picture below shows the area. Now原创 2015-11-28 13:41:02 · 562 阅读 · 0 评论 -
HDU ACM 1060 Leftmost Digit [数学题]
原题描述Problem Description Given a positive integer N, you should output the leftmost digit of N^N.Input The input contains several test cases. The first line of the input is a single integer T which原创 2015-11-29 01:53:20 · 516 阅读 · 0 评论 -
HDU ACM 1443 Joseph [数学题]
原题描述Problem Description The Joseph’s problem is notoriously known. For those who are not familiar with the original problem: from among n people, numbered 1, 2, …, n, standing in circle every mth is原创 2016-03-02 20:46:59 · 506 阅读 · 0 评论