24h購物| | PChome| 登入
2014-04-18 22:56:27
2012-04-14 09:05:15

[JavaScript] Return

var identity = function (x) { return x;};identity(50);var identity = function (x) { return square(x);};var square = function (x) { return x*x;}var identity = function (x) { return x;};var isOdd = func...

2012-04-14 08:55:14

[JavaScript] Variables in functions

var greeting = "Ahoy";var greeting = "Ahoy";var greet = function() { console.log(greeting);};greet();var greeting = "Ahoy";var greet = function () { // Local greeting variable. var greeting = "Hello";...

2012-04-14 08:44:00

[JavaScript] Defining Functions

var hello = function () { // Print hello on the console. console.log("i am saying hello");};hello();hello();var hi = function () { console.log("hi");};hi();var myFirstFunction = function() { console.l...

2012-04-13 21:46:44

[UVA][DP] 12063 - Zeros and Ones


Binary numbers and their pattern of bits are always very interesting to computer programmers. In this problem you need to count the number of positive binary numbers that have the following properti...

2012-04-13 17:20:47

[UVA][Math] 11428 - Cubes


Problem B Cubes Input: Standard Input Output: Standard Output Given a positive integer N you will have to find two positive integers x and y such that: Input The ...

2012-04-13 11:39:17

[UVA][SPFA&DP][C++] 11813 - Shopping


Problem A: Shopping You have just moved into a new apartment and have a long list of items you need to buy. Unfortunately, to buy this many items requires going to many different stores. You ...

2012-04-13 06:58:28

[UVA] 10871 - Primed Subsequence

Problem B Primed SubsequenceInput: standard input Output: standard output Primed Sequences Given a sequence of positive integers of length n, we define a primed subsequence as a conse...

2012-04-12 21:55:40

[UVA][DP] 967 - Circular

A - Circular Problem A circular prime is a prime number that remains prime as each leftmost digit (most significant digit), in turn, is moved to the right hand side. For instance,...

2012-04-12 20:05:43

[UVA][Math] 11909 - Soya Milk


On the dining table we have a packet of soya milk. We can look at the packet as a rectangular box with height h, length l and width w. We tilt it against a base edge, as shown in the picture. Soya...

2012-04-12 19:38:31

[UVA][Math] 920 - Sunny Mountains


Problem A Sunny Mountains During their honeymoon, Mrs and Mr Smith went to the Himalayas. How they were surprised when they observed that, during the sunset, all the snow touched ...

2012-04-12 15:46:10

[UVA] 270 - Lining Up

Lining Up ``How am I ever going to solve this problem?" said the pilot. Indeed, the pilot was not facing an easy task. She had to drop packages at specific points scattered in a dangerous are...

2012-04-12 08:18:53

[UVA][LIS&LDS] 10534 - Wavio Sequence

Problem D Wavio Sequence Input: Standard Input Output: Standard Output Time Limit: 2 Seconds Wavio is a sequence of integers. It has some interesting properties. · Wavio is of...

2012-04-12 07:30:09

[UVA][Math] 10642 - Can You Solve It?


Can You Solve It?Input: standard inputOutput: standard outputTime Limit: 1 second First take a look at the following picture. In this picture, each circle has a coordinate according to Car...

2012-04-11 22:04:11

[UVA][LIS] 437 - The Tower of Babylon


The Tower of Babylon Perhaps you have heard of the legend of the Tower of Babylon. Nowadays many details of this tale have been forgotten. So now, in line with the educational nature of this conte...

2012-04-09 15:04:13

[UVA][DP] 10313 - Pay the Price

Problem B Pay the Price Input: standard input Output: standard output Time Limit: 2 seconds Memory Limit: 32 MB In ancient days there was a country whose people had very intere...

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