- 博客(27)
- 收藏
- 关注
原创 UVa10165 - Stone Game
Problem E.Stone Game Background Jack and Jim are playing an interesting stone game. At the beginning of the game there are N pile(s)of stones. Each pile has Pi (I=1..N, 19) stones. They
2014-03-30 15:10:15 695
原创 UVa10891 - Game of Sum
Problem EGame of SumInput File: e.inOutput: Standard Output This is a two player game. Initially there are n integer numbers in an array and players A and B get chance to take them alternati
2014-03-29 21:26:18 622
原创 UVa11751 - Installing Diagnostic Software
Problem J: Installing Diagnostic SoftwareYou have recently been appointed as the administrator for a wired network of devices. Unfortunately, your predecessor used very poor quality lines to conne
2014-03-28 15:04:50 825
原创 UVa11158 - Elegant Permuted Sum
ENext Generation Contest 3Time Limit: 2 secondsElegant Permuted SumYou will be given n integers A1A2A3...An>. Find a permutation of these n integers so that sum
2014-03-26 18:03:03 806
原创 UVa11555 - Aspen Avenue
Aspen Avenue ``Phew, that was the last one!'' exclaimed the garden helper Tim as he threw the last tree plant to the ground. His employer, countess Esmeralda Hunt who owned the estate,
2014-03-26 11:34:48 925
原创 UVa11411 - MiniMice
Problem A : MiniMiceTime Limit : 6 secondsWelcome to the world of mice. All mice have IDs. They are numbered orderly according to their seniority from 1. These mice live in groups. Mice of a sam
2014-03-25 19:04:57 790
原创 UVa10236 - The Fibonacci Primes
Problem AThe Fibonacci PrimesInput: standard inputOutput: standard outputTime Limit: 8 secondsMemory Limit: 32 MB The Fibonacci number sequence is 1, 1, 2, 3, 5, 8, 13 and so on. You
2014-03-23 15:14:57 775
原创 UVa11489 - Integer Game
IInteger Game Two players, S and T, are playing a game where they make alternate moves. S plays first. In this game, they start with an integer N. In each move, a player remov
2014-03-23 12:14:31 828
原创 UVa10689 - Yet another Number Sequence
Problem BYet another Number SequenceInput: standard inputOutput: standard outputTime Limit: 3 secondsLet's define another number sequence, given by the following function:f(0) = af(1
2014-03-20 00:02:20 1250
原创 UVa11582 - Colossal Fibonacci Numbers!
Problem F: Colossal Fibonacci Numbers!The i'th Fibonacci number f (i) is recursively defined in the following way:f (0) = 0 and f (1) = 1f (i+2) = f (i+1) + f (i) for every i ≥ 0Your task i
2014-03-19 11:40:57 1161
原创 UVa10229 - Modular Fibonacci
Problem A: Modular FibonacciThe Fibonacci numbers (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, ...) are defined by the recurrence:F0 = 0F1 = 1Fi = Fi-1 + Fi-2 for i>1Write a program which c
2014-03-18 19:29:17 853
原创 UVa948 - Fibonaccimal Base
Problem C - Fibonaccimal BaseThe well known Fibonacci sequence is obtained by starting with 0 and 1 and then adding the two last numbers to get the next one. For example the third number in the sequ
2014-03-18 16:51:51 1053
原创 UVa763 - Fibinary Numbers
Problem B: How many Fibs?Recall the definition of the Fibonacci numbers:f1 := 1 f2 := 2 fn := fn-1 + fn-2 (n>=3)Given two numbers a and b, calculate how many Fibonacci numbers are in
2014-03-18 15:53:37 799
原创 UVa410 - Station Balance
Station Balance The International Space Station contains many centrifuges in its labs. Each centrifuge will have some number (C) of chambers each of which can contain 0, 1, or 2 specimens.
2014-03-11 17:37:35 1007
原创 UVa10670 - Work Reduction
Problem C: Work ReductionPaperwork is beginning to pile up on your desk, and tensions at the workplace are starting to mount. Your boss has threatened to fire you if you don't make any progress by
2014-03-11 15:34:28 635
原创 UVa10720 - Graph Construction
raph ConstructionTime Limit2 SecondsGraph is a collection of edges E and vertices V. Graph has a wide variety of applications in computer. There are different ways to represe
2014-03-11 14:17:21 804
原创 UVa993-Product of digits
Product of digits For a given non-negative integer number N , find the minimal natural Q such that the product of all digits of Q is equal N .Input The first line of input contains o
2014-03-11 12:57:44 804
原创 JAVA对ACCESS数据库进行操作
import java.sql.*;import java.util.*;import java.io.*;import java.text.*;public class getAccessDB { public static void getInsert(Connection con){ String sql = "INSERT INTO basic VALUES ('L00
2014-03-09 16:39:35 3587
原创 UVa11700 - Pipes
Problem B: PipesAfter writing a solver for the "moveable maze" game last week, you have grown tired of it. After all, you already know the optimal solution. To entertain yourself, you find another
2014-03-08 15:26:38 878
原创 UVa10651 - Pebble Solitaire
Problem APebble SolitaireInput: standard inputOutput: standard outputTime Limit: 1 second Pebble solitaire is an interesting game. This is a game where you are given a board with an arrang
2014-03-07 17:53:55 764
原创 UVa11153 - Museums
Problem F : MuseumsTime limit: 10 secondsMuseums have been playing a very important role in the development of art and culture in various places around the world. Museums a
2014-03-07 15:27:04 847
原创 UVa11725 - Colorful Board(BITMASK+DP)
Colorful BoardInput: Standard InputOutput: Standard Output You are given a board. You are asked to draw M horizontal lines and N vertical lines in that board, so that the whole board
2014-03-05 13:41:31 1566
原创 UVa11578 - Situp Benches
Problem B: Situp BenchesThe gym at the University of Alberta has two identical sit up benches that are side by side. Each of these benches can be inclined in 10 degree increments between 10 degree
2014-03-02 14:39:38 799
原创 UVa10645 - Menu
Menu Input: standard inputOutput: standard outputTime Limit: 10 secondsAlfred wants to plan what to cook in the next days. He can cook various dishes. For each dish the costs of
2014-03-02 13:30:51 1010
原创 UVa10901 - Ferry Loading III
Problem B: Ferry Loading IIIBefore bridges were common, ferries were used to transport cars across rivers. River ferries, unlike their larger cousins, run on a guide line and are powered by the rive
2014-03-01 19:26:42 1096
原创 UVa162 Beggar My Neighbour
Beggar My Neighbour ``Beggar My Neighbour'' (sometimes known as ``Strip Jack Naked'') is a traditional card game, designed to help teach beginners something about cards and their values. A
2014-03-01 17:08:36 1203
原创 UVa10145 - Lock Manager
Problem C"Lock Manager"You are invited to be a part of the team that is developing yet another DBMS (Data Base Management System). You will be responsible for the Lock Manager.Locks control co
2014-03-01 01:09:53 1080
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人