最新 最热

HDOJ(HDU) 2201 熊猫阿波的故事(概率问题)

Problem Description 凡看过功夫熊猫这部电影的人都会对影片中那只憨憨的熊猫阿波留下相当深的印象,胖胖的熊猫阿波自从打败了凶狠强悍的雪豹泰龙以后,在和平谷的地位是越来越高,成为谷中第一的功夫大师。并因此他父亲...

2021-01-21
1

HDOJ(HDU) 2178 猜数字(题意有点难理解、、、)

Problem Description A有1数m,B来猜.B每猜一次,A就说”太大”,”太小”或”对了” 。 问B猜n次可以猜到的最大数。

2021-01-21
1

HDOJ(HDU) 2162 Add ‘em(求和)

Problem Description Write a program to determine the summation of several sets of integers.

2021-01-21
1

HDOJ(HDU) 2161 Primes(素数打表)

Problem Description Write a program to read in a list of integers and determine whether or not each number is prime. A number, n, is prime if its only divisor...

2021-01-21
1

HDOJ(HDU) 2156 分数矩阵(嗯、求和)

Problem Description 我们定义如下矩阵: 1/1 1/2 1/3 1/2 1/1 1/2 1/3 1/2 1/1 矩阵对角线上的元素始终是1/1,对角线两边分数的分母逐个递增。 请求出这个矩阵的总和。...

2021-01-21
1

HDOJ(HDU) 2153 仙人球的残影(谜一样的题、、、)

在美丽的HDU,有一名大三的同学,他的速度是众所周知的,跑100米仅仅用了2秒47,在他跑步过程中会留下残影的哎,大家很想知道他是谁了吧,他叫仙人球,既然名字这样了,于是他的思想是单一的,他总是喜欢从一点出发,经过3次转折(每次向右...

2021-01-21
1

HDOJ(HDU) 2143 box(简单的多次判断-用的卫条件)

Problem Description One day, winnie received a box and a letter. In the letter, there are three integers and five operations(+,-,*,/,%). If one of the three i...

2021-01-21
1

HDOJ(HDU) 2138 How many prime numbers(素数-快速筛选没用上、)

Problem Description Give you a lot of positive integers, just to find out how many prime numbers there are.

2021-01-21
1

HDOJ(HDU) 2136 Largest prime factor(素数筛选)

Problem Description Everybody knows any number can be combined by the prime number. Now, your task is telling me what position of the largest prime factor. ...

2021-01-21
1

HDOJ(HDU) 2113 Secret Number(遍历数字位数的每个数字)

Problem Description 有一天, KIKI 收到一张奇怪的信, 信上要KIKI 计算出给定数各个位上数字为偶数的和. eg. 5548 结果为12 , 等于 4 + 8

2021-01-21
1