#include <iostream>
#include <string.h>
using namespace std;
char s[1001];
int t1,t2,co1,co2,te=0,k;
int main(void){
while(cin>>s){
t1=0;
t2=0;
if(s[0]==48)
break;
if(strlen(s)%2==0){
for(int i =0;i<=strlen(s)-1;i+=2){
t1+=s[i]-48;
t2+=s[i+1]-48;}
}
else
{
for(int i =0;i<=strlen(s)-2;i+=2){
t1+=s[i]-48;
t2+=s[i+1]-48;
k=i;}
t1+=s[k+2]-48;
}
if (t1==t2){
te=0; }
else {
if(t1>t2){
if((t1-t2)%11==0){
te=0; }
else{
te=1;}
}
else{
if((t2-t1)%11==0){
te=0; }
else{
te=1;}
}
}
(te==0)?(cout<<s<<" is a multiple of 11."<<endl):(cout<<s<<" is not a multiple of 11."<<endl);
}
}
為什麼??原本我s陣列設1000
後來改設1001也一樣˙ˇ˙