Category: Computer Science/Algorithm

[PKU] P1316: Self Numbers 0

[PKU] P1316: Self Numbers

Description 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...

[PKU] P1003: Hangover 0

[PKU] P1003: Hangover

Description How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We’re assuming that the cards...

[PKU] P1002: 487-3279 0

[PKU] P1002: 487-3279

Description Businesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or phrase. For example, you can call the University of...