HDU
雕栏玉砌应犹在,只是朱颜改
慢慢、漫漫
展开
-
HDU2000 ASCII码排序——java
Problem Description输入三个字符后,按各字符的ASCII码从小到大的顺序输出这三个字符。 Input输入数据有多组,每组占一行,有三个字符组成,之间无空格。 Output对于每组输入数据,输出一行,字符中间用一个空格分开。 Sample Inputqweasdzxc Sample Outpute q wa d sc x z题目很水,直接上代码import java.util.Ar...原创 2018-06-15 19:53:38 · 250 阅读 · 0 评论 -
A - Number Sequence
A number sequence is defined as follows: f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7. Given A, B, and n, you are to calculate the value of f(n). InputThe input consists of multiple ...原创 2018-07-15 15:22:14 · 327 阅读 · 0 评论 -
Climbing Worm
An inch worm is at the bottom of a well n inches deep. It has enough energy to climb u inches every minute, but then has to rest a minute before climbing again. During the rest, it slips down d inches...原创 2018-07-15 16:50:48 · 161 阅读 · 0 评论