簡單 時間限制:3 s記憶體限制:256 MB

Online Judge - 10929 - You can say 11

來源代碼:UVa
前往提交 ↓

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

輸入輸出範例

範例 1

範例輸入
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.
開啟討論
開啟紀錄

登入後即可撰寫程式、測試範例及提交解答。

登入