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.
intmain(){ fastio; string s; int odd, even; while(cin >> s){ if(s == "0") break; odd = even = 0; for(int i = 0; i < s.length(); ++i){ if(i & 1) even += s[i]-'0'; else odd += s[i]-'0'; } if(abs(odd-even) % 11 == 0) cout << s << " is a multiple of 11.\n"; else cout << s << " is not a multiple of 11.\n"; } return0; }