24h購物| | PChome| 登入
2014-04-18 22:56:27
2012-04-21 11:53:48

[UVA][Random] 10167 - Birthday Cake


Problem G. Birthday Cake Background Lucy and Lily are twins. Today is their birthday. Mother buys a birthday cake for them.Now we put the cake onto a Descartes coordinate. Its center is at...

2012-04-21 11:29:41

[UVA] 11879 - Multiple of 17


Multiple of 17 Theorem: If you drop the last digit d of an integer n (n10), subtract 5d from the remaining integer, then the difference is a multiple of 17 if and only if n is a multiple of 1...

2012-04-21 08:32:21

[UVA][hash] 1152 - 4 Values whose Sum is 0


The SUM problem can be formulated as follows: given four lists A, B, C, D of integer values, compute how many quadruplet (a, b, c, d ) A x B x C x D are such that a + b + c + d = 0 . In the ...

2012-04-20 19:12:20

[UVA][V2] 11002 - Towards Zero

//C++ 1.312#include <stdio.h>#include <stdlib.h>#include <map>using namespace std;int main() { map<int, int> record1[60][30], record2[60][30]; int n, i, j, A[60][30]; while(sca...

2012-04-20 18:46:31

[UVA][DP] 11002 - Towards Zero


Problem C: Towards ZeroThe ProblemHave you ever heard of this game? The player jumps in a special game board under certain rules, so that the numbers he jumps on, after being linked up by plus or minu...

2012-04-20 17:26:03

[UVA][DFS] 989 - Su Doku


Su Doku Problem In many newspapers we may find some puzzles to solve, one of those is Su Doku. Given a grid 9×9 with some of entries filled, the objective is to fill in the grid so that eve...

2012-04-20 16:28:02

[UVA][Math] 10347 - Medians

Problem C Medians Input: standard input Output: standard output Time Limit: 1 second Memory Limit: 32 MB Given the length of three medians of a triangle you will have to find out the area ...

2012-04-20 16:26:26

[UVA][DP] 1213 - Sum of Different Primes


A positive integer may be expressed as a sum of different prime numbers (primes), in one way or another. Given two positive integers n and k, you should count the number of ways to express n as a ...

2012-04-20 16:25:02

[UVA] 1210 - Sum of Consecutive Prime Numbers

Some positive integers can be represented by a sum of one or more consecutive prime numbers. How many such representations does a given positive integer have? For example, the integer 53 has two ...

2012-04-19 09:30:13

[UVA][Greedy] 12405 - Scarecrow


C Scarecrow Taso owns a very long field. He plans to grow different types of crops in the upcoming growing season. The area, however, is full of crows and Taso fears that ...

2012-04-19 09:00:41

[UVA][EASY] 12403 - Save Setu

A Save Setu Rahaduzzaman Setu, (Roll - 12) of 13th batch, CSE, University of Dhaka is tremendously ill. He has been suffering from Multi Drug Resistant TB for a long time....

2012-04-19 07:24:36

[UVA] 263 - Number Chains


Number Chains Given a number, we can form a number chain by arranging its digits in descending order arranging its digits in ascending order subtracting the number obtained in (2) from the numb...

2012-04-18 22:38:21

[UVA][AC自動機] 10679 - I Love Strings!!

I loveStrings!!!Input / Output:standard I/OTime Limit: 4 sec Hmmmmmm…………strings again :) Then it must be aneasy task for you. Well……you are given with a string S of length notmore than 100,00...

2012-04-17 19:03:24

[JAVA] foreach 的陷阱

必須了解 for-each 是無法做修改值的,僅能提供讀的功能。為什麼有感而發呢 ?小考出了這麼兩小題。宣告一個 int 的陣列, 名稱為 value, 元素個數 10 個, 並用 for 迴圈宣告成 1 ~ 10利用 for-each loop 將每個元素值乘...

2012-04-17 17:25:41

[UVA] 11222 - Only I did it!

D. Only I did it! Time limit: 1s Once upon a time, in the land of Ceeplenty, lived 3 friends that liked to solve problems. They used internet engines to look for problems and they often tried...

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