海岛Blog

海是无垠的,岛在海中是独立的,有一片自己的天空

UVA10515 Powers Et Al.【数学+Ad Hoc】

计算n^m 的最后一位Finding the exponent of any number can be very troublesome as it grows exponentially. But in this problem you will have to do a very simpl...

2018-05-30 07:46:47

阅读数:53

评论数:0

POJ2661 HDU1141 ZOJ2545 UVA10916 Factstone Benchmark【Ad Hoc】

Factstone BenchmarkTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 4769 Accepted: 2263DescriptionAmtel has announced that it will release a...

2018-05-02 10:20:34

阅读数:37

评论数:0

UVALive6222 Unhappy Numbers【数学】(RE)

Numbers have feelings too! For any positive integer, take the sum of the squares of each of its digits, and add them together. Take the result, and d...

2018-04-25 09:07:31

阅读数:124

评论数:0

UVALive8091 Happy Number【数学】

Consider the following function f defined for any natural number n:f(n) is the number obtained by summing up the squares of the digits of n in decima...

2018-04-25 06:48:43

阅读数:34

评论数:0

UVA10591 Happy Number【数学】

Let the sum of the square of the digits of a positive integer S0 be represented by S1. In a similar way, let the sum of the squares of the digits of ...

2018-04-25 06:32:23

阅读数:31

评论数:0

UVA11526 H(n)【数学】

What is the value this simple C++ function will return?long long H(int n){    long long res = 0;    for( int i = 1; i <= n; i=i+1 ){      ...

2018-04-06 18:05:39

阅读数:28

评论数:0

POJ1730 ZOJ2124 UVA10622 Perfect Pth Powers【快速幂+暴力】

Perfect Pth PowersTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 18333 Accepted: 4222DescriptionWe say that x is a perfect square if, for ...

2018-04-06 17:29:54

阅读数:58

评论数:0

UVA10022 Delta-wave【找规律+数学题】

On the triangular field shown on the picture, small triangles are numbered from 1 to oo (infinity). Traveller wants to go from triangle M to triangle...

2018-03-24 16:35:39

阅读数:50

评论数:0

POJ2619 HDU1030 Delta-wave【找规律+数学题】

Delta-waveTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 1668 Accepted: 792DescriptionA triangle field is numbered with successive integer...

2018-03-24 11:29:00

阅读数:57

评论数:0

HDU1060 Leftmost Digit【取对数+数学】

Leftmost DigitTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 19168    Accepted Submission(s)...

2018-02-23 22:05:11

阅读数:76

评论数:0

UVA10110 Light, more light【数学】

There is man named ”mabu” for switching on-off light in our University. He switches on-off the lightsin a corridor. Every bulb has its own toggle swi...

2018-02-23 18:41:55

阅读数:73

评论数:0

UVA10089 Repackaging【数学+凸包】

Coffee cups of three different sizes (identified as size 1, size 2 and size 3 cups) are produced in factories under ACM (Association of Cup Makers) a...

2018-02-23 17:51:55

阅读数:83

评论数:0

UVA12004 Bubble Sort【数学】

Check the following code which counts the number of swaps of bubble sort.int findSwaps( int n, int a[] ){    int count = 0, i, j, temp, b[100000];   ...

2018-02-22 02:17:29

阅读数:114

评论数:0

UVA12578 10:6:2【数学】

The national flag of Bangladesh is bottle green in color and rectangular in size with the length (L) to width ratio of 10:6. It bears a red circle on...

2018-02-18 07:48:33

阅读数:136

评论数:0

UVA944 Happy Numbers【数学】

Let the sum of the squares of the digits of a positive integer s0 be represented by s1. In a similar way, let the sum of the squares of the digits of...

2018-02-17 23:11:02

阅读数:216

评论数:0

UVA913 Joana and the Odd Numbers【数学】

Joana loves playing with odd numbers. In the other day, she started writing, in each line, an odd number of odd numbers. It looked as follows:13 5 79...

2018-02-17 18:58:23

阅读数:111

评论数:0

UVA880 Cantor Fractions【数学】

In the late XIXth century the German mathematician George Cantor argued that the set of positive fractions Q+ is equipotent to the set of positive in...

2018-02-17 18:30:06

阅读数:75

评论数:0

UVA264 UVALive5373 UVALive3034 Count on Cantor【数学】

One of the famous proofs of modern mathematics is Georg Cantor’s demonstration that the set of rational numbers is enumerable. The proof works by usi...

2018-02-16 22:39:57

阅读数:118

评论数:0

POJ1320 UVA138 Street Numbers【Pell方程+数学】

Street NumbersTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 3055 Accepted: 1712DescriptionA computer programmer lives in a street with ho...

2018-02-16 21:57:44

阅读数:122

评论数:0

UVA11479 Is this the easiest problem?【三角形判定+数学】

A triangle is a geometric shape with three positive sides. However, any given three sides won’t necessarily form a triangle. The three sides must for...

2018-02-16 19:05:02

阅读数:70

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭