原创 UVa568 Just the Facts

 Just the Facts  The expression N!, read as ``N factorial," denotes the product of the firstN positive integers, whe

原创 UVa550 Multiplying by Rotation

 Multiplying by Rotation  Warning: Not all numbers in this problem are decimal numbers! Multiplication of natural n

原创 UVa10785 The Mad Numerologist

 The Mad Numerologist  Numerology is a science that is used by many people to findout a mans personality, sole purp

原创 UVa10034 Freckles

Problem A: Freckles In an episode of the Dick Van Dyke show, little Richie connects the freckleson his Dad's back to

原创 UVa10420 List of Conquests

Problem B List of Conquests Input:standardinput Output: standard output Time Limit: 2 seconds In Act I, Leporello is

原创 UVa10110 Light, more light

  Light,more light The Problem There is man named "mabu" for switching on-off light in our University.He switches on-

原创 UVa694 The Collatz Sequence

 The Collatz Sequence  An algorithm given by Lothar Collatz produces sequences of integers, and isdescribed as foll

原创 UVa488 Triangle Wave

 Triangle Wave  In this problem you are to generate a triangular wave form according to a specified pair ofAmplitud

原创 UVa10879 Code Refactoring

Problem BCode RefactoringTime Limit: 2 seconds "Harry, my dream is a code waiting to be broken. Break the code, solv

原创 UVa414 Machined Surfaces

 Machined Surfaces  An imaging device furnishes digital images of two machined surfaces thateventually will be asse

原创 UVa458 The Decoder

 The Decoder  Write a complete program that will correctly decode a set ofcharacters into a valid message. Your progr

原创 UVa299 Train Swapping

 Train Swapping  At an old railway station, you may still encounter one of the lastremaining ``train swappers''. A tr

原创 UVa457 Linear Cellular Automata

 Linear Cellular Automata  A biologist is experimenting with DNA modification ofbacterial colonies being grown in a

原创 UVa755 487-3279

 487-3279  Businesses like to have memorable telephone numbers. One way to make a telephone number memorableis to hav

原创 UVa10815 Andy's First Dictionary

Andy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy task for him, as the number of