24h購物| | PChome| 登入
2014-04-18 22:56:27
2012-01-09 18:20:40

[中興資工][程設][期末考]


Final_上機-page-001.jpgFinal_上機-page-002.jpg下載筆試滿分 200 ...

2012-01-09 17:14:36

[C/C++] 用程式碼印出自己的程式碼

方法一: 最為正統的寫法#include<stdio.h>#include<stdlib.h>int main() { char str[] = "#include<stdio.h>%c#include<stdlib.h>%cint main() {%c%cchar str[] = %c%s%c;%c%cprintf(str, 1...

2012-01-06 16:42:35

[C/C++] 格雷碼(Gray code)

格雷碼(Gray code)是由貝爾實驗室的Frank Gray在1940年提出,用於在PCM(脈衝編碼調變)方法傳送訊號時防止出錯,並於1953年三月十七日取得美國專利。格雷碼是一個數列集合,相鄰兩數間只有一個位元改變,為無權數...

2011-12-30 09:46:33
2011-12-30 09:39:14
2011-12-30 07:50:18

[PTC] Problem C Elevator

Problem CElevatorInput file: testdata.inTime limit: 2 secondsProblem DescriptionIn a skyscraper people take elevators to go to their destination floors. How-ever if elevators are not well placed at th...

2011-12-18 20:35:48

[UVA] 640 - Self Numbers

Self Numbers In 1949 the Indian mathematician D.R. Kaprekar discovered a class of numbers called self-numbers. For any positive integer n, define d(n) to be n plus the sum of the digits of n....

2011-12-18 20:19:04

[UVA] 443 - Humble Numbers


Humble Numbers A number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, 16, 18, 20, 21, 24, 25, 27, ... shows the first 2...

2011-12-18 20:12:15

[UVA] 136 - Ugly Numbers

Ugly Numbers Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, ... shows the first 11 ugly numbers. By convention, 1 is...

2011-12-17 10:03:40

[UVA] 10789 - Prime Frequency


Prime Frequency Given a string containing only alpha-numerals (0-9, A-Z and a-z) you have to count the frequency (the number of times the character is present) of all the characters and repor...

2011-12-16 17:31:48

[UVA] 1121 - Subsequence

A sequence of N positive integers (10 < N < 100000), each of them less than or equal 10000, and a positive integer S (S < 100000000) are given. Write a program to find the minimal length of...

2011-12-16 15:25:17

[UVA] 1266 - Magic Square

If you have good observations skills, you may found that building a Magic Square is simple. A Magic Squarehas only an odd number N of rows and columns. For this problem you could expect the values to ...

2011-12-16 09:22:34

[UVA] 1185 - Big Number


In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, encryption, etc. In this problem you are given a number, you...

2011-12-16 08:40:04

[UVA] 11733 - Airports


A Airports The government of a certain developing nation wants to improve transportation in one of its most inaccessible areas, in an attempt to attract investment. Th...

2011-12-16 07:13:01

[UVA] 11121 - Base -2

Problem D Base -2 Input: Standard Input Output: Standard Output The creator of the universe works in mysterious ways. But he uses a base ten counting system and like...

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