Online Judge - 10929 - You can say 11
來源代碼:UVa
時間限制:3 s
題目說明
Your job is, given a positive number N, determine if it is a multiple of eleven.
輸入說明
The input is a file such that each line contains a positive number. A line containing the number ‘0’ is the end of the input. The given numbers can contain up to 1000 digits.
輸出說明
The output of the program shall indicate, for each input number, if it is a multiple of eleven or not. End with a new line
輸入輸出範例
範例輸入
112233 30800 2937 323455693 5038297 112234 0
範例輸出
112233 is a multiple of 11. 30800 is a multiple of 11. 2937 is a multiple of 11. 323455693 is a multiple of 11. 5038297 is a multiple of 11. 112234 is not a multiple of 11.
討論
登入後即可加入討論。
登入
目前還沒有討論文章。