与‘基础算法-模拟’有关的日志

poj1555

maksyuki 发表于 oj 分类,标签:
0
poj1555

Polynomial Showdown

Given the coefficients of a polynomial from degree 8 down to 0, you are to format the polynomial in a readable format with unnecessary characters removed. For instance, given the coefficients 0, 0, 0, 1, 22, -333, 0, 1, and -1, >>继续阅读

poj1528

maksyuki 发表于 oj 分类,标签:
0
poj1528

Perfection

From the article Number Theory in the 1994 Microsoft Encarta: If a, b, c are integers such that a = bc, a is called a multiple of b or of c, and b or c is called a divisor or factor of a. If c is not 1/-1, b is called a proper divisor of >>继续阅读

poj1316

maksyuki 发表于 oj 分类,标签:
0
poj1316

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. (The d stands for digitadition >>继续阅读

poj1218

maksyuki 发表于 oj 分类,标签:
0
poj1218

THE DRUNK JAILER

A certain prison contains a long hall of n cells, each right next to each other. Each cell has a prisoner in it, and each cell is locked.One night, the jailer gets bored and decides to play a game. For round 1 of the game, he takes >>继续阅读

poj1068

maksyuki 发表于 oj 分类,标签:
0
poj1068

Parencodings

Let S = s1 s2...s2n be a well-formed string of parentheses. S can be encoded in two different ways: >>继续阅读

poj1060

maksyuki 发表于 oj 分类,标签: ,
0
poj1060

Modular multiplication of polynomials

Consider polynomials whose coefficients are 0 and 1. Addition of two polynomials is achieved by 'adding' the coefficients for the corresponding powers in the polynomials. The addition of coefficients is perform >>继续阅读

poj1028

maksyuki 发表于 oj 分类,标签:
0
poj1028

Web Navigation

Standard web browsers contain features to move backward and forward among the pages recently visited. One way to implement these features is to use two stacks to keep track of the pages that can be reached by moving backward and forw >>继续阅读

uva12412

maksyuki 发表于 oj 分类,标签:
0
uva12412

Hi, I am an undergraduate student in institute of foreign languages. As you know, C programming is a required course in our university, even if his/her major is far from computer science. I don't like this course at all, as I am not good at computer >>继续阅读

uva232

maksyuki 发表于 oj 分类,标签:
0
uva232

A crossword puzzle consists of a rectangular grid of black and white squares and two lists of definitions (or descriptions).

One list of definitions is for words" to be written left to right across white squares in the rows and the other list is fo >>继续阅读

uva237

maksyuki 发表于 oj 分类,标签:
0
uva237

A children's puzzle that was popular 30 years ago consisted of a 5x5 frame which contained 24 small squares of equal size. A unique letter of the alphabet was printed on each small square. Since there were only 24 squares within the frame, the frame >>继续阅读

sgu100

maksyuki 发表于 oj 分类,标签:
0
sgu100

A+B

Read integers A and B from input file and write their sum in output file.

Input

Input file contains A and B (0<A,B<10001).

>>继续阅读