24h購物| | PChome| 登入
2014-04-18 22:56:27
2013-12-05 16:08:35

[UVA][匈牙利] 1514 - Piece it together


Tom has developed a special kind of puzzle: it involves a whole bunch of identical puzzle pieces. The pieces have the shape of three adjoint squares in an L-shape. The corner square is black, the...

2013-12-05 16:03:32

[UVA] 11601 - Avoiding Overlaps

F Avoiding Overlaps Input: Standard Input Output: Standard Output Given N regular rectangles in a sequence. Following this sequence you have to dr...

2013-12-05 15:57:13

[UVA][KMP] 12604 - Caesar Cipher


Problem C: Caesar cipher In cryptography, a Caesar cipher, also known as Caesar's cipher, the shift cipher, Caesar's code or Caesar shift, is one of the simplest and most widely known encrypti...

2013-12-05 15:49:36

[UVA] 12643 - Tennis Rounds

SampleInput3 2 53 5 72 1 22 2 1SampleOutput3211找兩個節點的最小共同祖先,計算第幾回合會對戰到。藉由 k, 2*k, 2*k+1 的編號方式,除 2 即可得到共同祖先。#include <stdio.h>int main() { int n, i, j, k...

2013-12-05 15:47:00

[UVA][Easy] 12650 - Dangerous Dive

SampleInput5 33 1 56 66 1 3 2 5 4SampleOutput2 4*連續最大和問題 O(n)#include <sstream>#include <stdio.h>#include <algorithm>using namespace std;char s[1048576];int main() { while(get...

2013-12-05 15:45:29

[UVA][Easy] 12650 - Dangerous Dive

SampleInput 5 3 3 1 5 6 6 6 1 3 2 5 4 SampleOutput 2 4 *  單純的標記問題,給犧牲名單,輸出剩餘存活名單。 #include <stdio.h>#include <string.h>int main(...

2013-12-05 15:43:24

[UVA][Easy] 12646 - Zero or One

Everyone probably knows the game ZeroorOne (in some regions in Brazil also known as Twoor One ), used to determine a winner among three or more players. For those unfamiliar, the game ...

2013-12-02 09:19:52

[文化脈絡中的數學] 期末報告


數學與計算機100502205 資工三B 楊翔雲  課堂中講到計算機的歷史,以及 Ada 的相關事蹟,先不論計算機方面的運作,Grace Hopper 曾提出數形變換,數形變換在 ACM-ICPC 競賽上算是一門學問,很多演算法的思路藉由數...

2013-12-01 19:18:24

[電腦攻防][作業1] shell code

Score: 120 points. Description: Write two programs with the following properties: On a host, called server host, write a program, called password_holder.c, that all...

2013-12-01 18:35:19

[UVA][外接圓] 10439 - Temple of Dune


Problem A: Temple of Dune The Archaeologists of the Current Millenium (ACM) now and then discover ancient artifacts located at the vertices of regular polygons. In general it is necessary to mov...

2013-12-01 18:25:57

[UVA] 10416 - Folding My T-Shirt


Problem F Folding My T-Shirt Input: standard input Output: standard output Time Limit: 2 seconds Memory Limit: 16 MB I have a T-Shirt. When I don't wear it any more, I fold it up. For mo...

2013-12-01 11:47:04

[POJ][朱劉算法] 3164 - Command Network

DescriptionAfter a long lasting war on words, a war on arms finally breaks out between littleken’s and KnuthOcean’s kingdoms. A sudden and violent assault by KnuthOcean’s force has rendered a...

2013-12-01 11:45:10

[UVA][朱劉算法] 11183 - Teen Girl Squad

Problem I Teen Girl Squad Input: Standard Input Output: Standard Output -- 3 spring rolls please. -- MSG'D!! -- Oh! My stomach lining! Strong Bad ...

2013-12-01 11:43:06

[UVA][數學][繁瑣] 10367 - Equations


Problem A: Equations Given 2 equations on the variables x and y, solve for x and y. The first line of input contains N, the number of test cases. Each test case consists of two equations, each ...

2013-12-01 11:40:33

[UVA][三分] 10385 - Duathlon

Problem H Duathlon Input: standard input Output: standard output Time Limit: 15 seconds A duathlon is a race that involves running r km and cycling k km. n contestants have entered the ra...

第一頁      ‹上一頁       1 .  2 .  3 .  4 .  5 .  6 .  7 .  8 .  9 .  10 .      下一頁›      最末頁
第 9 / 142 頁 , 共 2116 筆       下十頁»      
TOP