24h購物| | PChome| 登入
2014-04-18 22:56:27
2012-03-26 22:33:54

[UVA][JAVA] 10023 - Square root


Square root The Problem You are to determinate X by given Y, from expression The Input The first line is the number of test cases, followed by a blank line. Each test case of the input...

2012-03-26 21:27:22

[UVA][JAVA] 10183 - How Many Fibs?

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...

2012-03-26 20:51:29

[UVA] 10025 - The ? 1 ? 2 ? ... ? n = k problem

The ? 1 ? 2 ? ... ? n = k problem The problem Given the following formula, one can set operators '+' or '-' instead of each '?', in order to obtain a given k ? 1 ? 2 ? ... ? n = k For ex...

2012-03-26 20:34:38

[UVA] 10227 - Forests

Problem D: Forests If a tree falls in the forest, and there's nobody there to hear, does it make a sound? This classic conundrum was coined by George Berkeley (1685-1753), the Bishop and influent...

2012-03-26 16:34:09

[JAVA] 輸出系統時間


import java.util.Date;import java.util.Locale;import java.text.DateFormat;public class JVD2 { public static void main(String[] args) { Locale US = Locale.US; for(int i = 0; i <= 3; i++) { for(i...

2012-03-25 22:14:11

[2012/3/25] 如果我這麼說

家裡管得真的有夠多, 真不想回家, 回家又嫌我只會抱電腦, 不跟家人多講點話,這下可好了, 我應該說些什麼才好呢, 說我讀的科系多爛嗎 ? 說我的大學生活多無聊嗎 ?我看說完, 你讓我退學好了, 常常有人說大學可以玩很多...

2012-03-25 20:52:07

[UVA][CutEdge] 796 - Critical Links


Critical Links In a computer network a link L, which interconnects two servers, is considered critical if there are at least two servers A and B such that all network interconnection p...

2012-03-25 16:35:49

[UVA][CutPoint] 315 - Network

Network A Telephone Line Company (TLC) is establishing a new telephone cable network. They are connecting several places numbered by integers from 1 to N. No two places have the same number. Th...

2012-03-25 13:10:46

[UVA][Math] 11314 - Hardly Hard


Problem H HARDLY HARD You have been given the task of cutting out a quadrilateral slice of cake out of a larger, rectangular cake. You must find the slice with the smallest perimeter that sati...

2012-03-25 11:47:28

[UVA][Math] 11038 - How Many O's?


Problem E: How many 0's? A Benedict monk No. 16 writes down the decimal representations of all natural numbers between and including m and n, m ≤ n. How many 0's will he write down? I...

2012-03-24 19:38:07

[UVA][JAVA] 10579 - Fibonacci Numbers

Problem E: Fibonacci Numbers A Fibonacci sequence is calculated by adding the previous two members of the sequence, with the first two members being both 1. f (1) = 1, f (2) = 1, f ...

2012-03-24 14:57:45

[UVA] 12019 - Doom's Day Algorithm

A - Doom's Day Algorithm Background No. Doom's day algorithm is not a method to compute which day the world will end. It is an algorithm created by the mathematician John Horton Conway,...

2012-03-24 14:50:29

[UVA] 256 - Quirksome Squares


Quirksome Squares The number 3025 has a remarkable quirk: if you split its decimal representation in two strings of equal length (30 and 25) and square the sum of the numbers so obtained, you ob...

2012-03-24 10:13:32

[UVA] 10057 - A mid-summer night's dream

Problem C A mid-summer night’s dream Input: standard input Output: standard output This is year 2200AD. Science has progressed a lot in two hundred years. Two hundred years ...

2012-03-24 09:29:13

[UVA] 11150 - 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 (say N) bottles of cola from the store. You...

第一頁      ‹上一頁       101 .  102 .  103 .  104 .  105 .  106 .  107 .  108 .  109 .  110 .      下一頁›      最末頁
«上十頁      第 108 / 142 頁 , 共 2116 筆       下十頁»      
TOP