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

[UVA] 793 - Network Connections


Network Connections Bob, who is a network administrator, supervises a network of computers. He is keeping a log connections between the computers in the network. Each connec...

2012-01-26 21:45:11

[UVA] 10245 - The Closest Pair Problem

Problem J The Closest Pair Problem Input: standard input Output: standard output Time Limit: 8 seconds Memory Limit: 32 MB Given a set of points in a two dimensional space, you wi...

2012-01-26 17:56:54

[UVA] 673 - Parentheses Balance

Parentheses Balance You are given a string consisting of parentheses () and []. A string of this type is said to be correct: (a) if it is the empty string (b) if A and B are correct, AB...

2012-01-26 16:18:39

[UVA] 440 - Eeny Meeny Moo


Eeny Meeny Moo Surely you have made the experience that when too many people use the Internet simultaneously, the net becomes very, very slow. To put an end to this problem, the University of...

2012-01-26 16:17:48

[UVA] 151 - Power Crisis


Power Crisis During the power crisis in New Zealand this winter (caused by a shortage of rain and hence low levels in the hydro dams), a contingency scheme was developed to turn off the power to ...

2012-01-25 16:06:29

[JAVA][作業練習] Lab10


用 JAVA 寫一個視窗井字遊戲下載 : 程式碼

2012-01-22 16:08:27

[JAVA][作業練習] Lab7

Write a program that converts dates from numberical month/day/year format to normal "month day, year" format (for example, 12/25/2000corresponds to December 25, 2000). You will define three exception ...

2012-01-22 13:10:30

[JAVA][作業練習] Lab6

Define a class named Document that contains a member variable oftype String named text that stores any textual content for thedocument. Create a method named toString that returns the textfield. Also ...

2012-01-22 09:22:29

[JAVA][作業練習] Lab5

Traditional password entry schemes are susceptible to "shoulder surfing" in which an attacker watches an unsuspecting user enter their password or PIN number and uses it later to gain access to th...

2012-01-20 12:28:31

[JAVA][作業練習] Lab4

Define a class for complex numbers. A complex number is a number of the form a + b*i where for our purposes, a and b are numbers of type double, and i is a number that represents the square root of -...

2012-01-20 08:04:35

[JAVA][作業練習] Lab2

TheGameOfPig.java/**** @author Shiang-Yun YangThe game of Pig is a sample two player dice game in which the first player toreach 100 or more points wins. Players take turns. On each turn a player roll...

2012-01-19 14:10:33

[JAVA][作業練習] Lab1

/**** @author Shiang-Yun YangThe Babylonian algorithm to compute the square root of a number n is as follows:1.Make a guess at the answer (you can pick n/2 as your initial guess)2.Compute r = n /guess...

2012-01-19 14:07:33

[JAVA][作業練習] Lab3

/**** @author Shiang-Yun YangDefine a class called Fraction for performing arithmetic with fractions.Write a main method to test all the functionalities of the Fraction class.Use integer variables to ...

2012-01-18 15:47:51

[JAVA] a104. 排序

import java.util.Scanner;import java.util.Arrays;public class a104 { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n, i; int arr[] = new int[1000]; while(in.has...

2012-01-18 15:18:08

[JAVA] a021. 大數運算

import java.util.Scanner;import java.io.IOException;import java.math.BigInteger;public class a021 { public static void main(String[] args) { Scanner cin = new Scanner(System.in); String input; whil...

第一頁      ‹上一頁       111 .  112 .  113 .  114 .  115 .  116 .  117 .  118 .  119 .  120 .      下一頁›      最末頁
«上十頁      第 113 / 142 頁 , 共 2116 筆       下十頁»      
TOP