d235. 10929 - You can say 11
Tags :
Accepted rate: 6058人/ 6929人 ( 87%) [非即時]
評分方式:
Strictly

最近更新 : 2015-08-28 14:41

Content

你的任務是,給你一個正整數 N,判定它是否是 11 的倍數。

Input

每列資料有一個正整數N,N 最大可能到 1000 位數。

若 N = 0 代表輸入結束

Output

對每個輸入的數,輸出是否為 11 的倍數。輸出格式請參考 Sample Output。

Sample Input #1
112233
30800
2937
323455693
5038297
112234
0
Sample Output #1
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.
測資資訊:
記憶體限制: 512 MB
公開 測資點#0 (100%): 1.0s , <1M
Hint :
Tags:
出處:
UVa 10929 [管理者: pcsh710742 (ms0472904) ]

Status Forum 排行

ID User Problem Subject Hit Post Date
38384 s10900156@nh ... (ShanC) d235
簡單題
2159 2023-11-17 21:57
17130 addii (白家宇) d235
7207 2019-03-13 20:02
52852 brianlai9192 (Brian Lai) d235
d235題解+解說
279 2025-08-31 20:53
39310 toseanlin@gm ... (Dr. SeanXD) d235
解題思路
1583 2024-02-05 01:25
34443 wrr606@gmail ... (Function) d235
python主場
1468 2023-03-20 23:30