2012-01-27から1日間の記事一覧

Multiples of a Number

2つの数値xとnがあり、nは2の累乗である。 x input カンマ区切りの最初の値がx 2つ目の値がn 13,8 17,16output 16 32 設問 Description:Given numbers x and n, where n is a power of 2, print out the smallest multiple of n which is greater than or e…