# UVA11005 Cheapest Base【数学】

When printing text on paper we need ink. But not every character needs the same amount of ink to print: letters such as ’W’, ’M’ and ’8’ are more exp...

# UVA11150 Cola【数学】

You see the following special offer by the convenience store:“A bottle of Choco Cola for every 3 empty bottles returned”  Now you decide to buy some ...

# UVA10229 Modular Fibonacci 【循环数列】

The Fibonacci numbers (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, ...) are defined by the recurrence:    F0 = 0    F1 = 1    Fi = Fi−1 + Fi−2 for i &am...

# UVA10633 Rare Easy Problem【数学】

N is a random number, which for some reason, is at least two digits. John Doe, a nondescript man, performs an operation on N: he chops off the last d...

# UVA10696 f91【数学函数+打表】

McCarthy is a famous theorician of computer science. In his work, he defined a recursive function, called f91, that takes as input a positive integer...

# UVA10699 Count the factors【素数因子个数＋筛选法】

Write a program, that computes the number of different prime factors in a positive integer.InputThe input tests will consist of a series of positive ...

# UVA10831 Gerg's Cake【快速幂+勒让德记号】

Gerg is having a party, and he has invited his friends. p of them have arrived already, but a are running late. To occupy his guests, he tried playin...

# UVA10830 A New Function【数学】

We all know that any integer number N is divisible by 1 and N. That is why these two numbers are not the actual divisors of any numbers. The function...

# UVA10310 Dog and Gopher【Ad Hoc+水题】

A large field has a gopher and a dog. The dog wants to eat the gopher, while the gopher wants to run to safety through one of several gopher holes du...

German farmers are given a premium depending on the conditions at their farmyard. Imagine the following simplified regulation: you know the size of e...

# UVA11752 The Super Powers【超级幂+暴力+数论】

We all know the Super Powers of this world and how they manage to get advantages in political warfare or even in other sectors. But this is not a pol...

# UVA12068 UVALive3288 Harmonic Mean【分数】

The harmonic mean (HN ) of N numbers a1, a2, a3 . . . aN−1, aNis defined as below:So the harmonic mean of four numbers a, b, c, d is defined asIn thi...

# UVA10041 UVALive2202 Vito's Family【中位数+排序】

The world-known gangster Vito Deadstone is moving to New York. He has a very big family there, all of them living in Lamafia Avenue. Since he will vi...

# UVA10469 To Carry or not to Carry【数字逻辑运算】

6+9=15 seems okay. But how come 4+6=2?  You see, Mofiz had worked hard throughout his digital logic course, but when he was asked to implement a 32 b...

# UVA10015 Joseph's Cousin【筛选法】

The Josephs problem is notoriously known. For those who are not familiar with the problem, among n people numbered 1, 2, . . . , n, standing in circl...

个人资料
等级：
访问量： 108万+
积分： 2万+
排名： 357
文章分类
博客专栏
 ACM题解 文章：589篇 阅读：402524 趣味程序 文章：40篇 阅读：34140 大学计算机读本 文章：14篇 阅读：19683 基础程序 文章：15篇 阅读：14003 CCF认证题解 文章：45篇 阅读：140703 Project Euler问题程序解 文章：39篇 阅读：15990 NOIP赛题解 文章：19篇 阅读：9450
最新评论