”UVA/LA“ 的搜索结果

     Given a graph (V, E) where V is a set of nodes and E is a set of arcs in V ×V , and an ordering on the elements in V , then the bandwidth of a node v is defined as the maximum distance in the ...

     The inhabitants of Tigerville and Elephantville are engaged in a seasonal war. Last month, Elephantville successfully launched and orbited a spy telescope called the Bumble Scope. The purpose of the B...

UVa 1330 LA 3029

标签:   uva

     蓝书第一章的题目,神奇的解法:详细见P50,City Game LA3029, UVa 1330#include #include #include #include #include #include using namespace std; typedef long long L

     Write a program to identify the youngest person and the oldest person in a class. Input The number n (1 ≤ n ≤ 100) in the first line determines the number of people in a class. The following n lines...

     The standard interpretation of the binary number 1010 is 8 + 2 = 10. An alternate way to view the sequence “1010” is to use Fibonacci numbers as bases instead of powers of two. For this problem, the...

     The probability of n heads in a row tossing a fair coin is 2−n Input The first line of the input contains an integer r. Then r lines containing each one an integer number n. The value of n is as ...

     #include #include #define MAX(x,y) ((x)>(y)?(x):(y)) int d1[5100],d2[5100],n; int ok(int num) { int l=0,r=0,k=0,l1=0,r1=0; for(int i=0;i;i++) { int t=0; l+=d1[i]; r+=d2[i];... {

     Description Programming contests became so popular in the year 2397 that the governor of New Earck — the largest human-inhabited planet of the galaxy — opened a special Alley of Contestant Memories ...

10  
9  
8  
7  
6  
5  
4  
3  
2  
1