#include <stdio.h>
#include <stdlib.h>
#include<iostream>
#include<math.h>
#include<string.h>
using namespace::std;
void c(int area)
{
switch(area)
{
case 10:
cout<<"A";
break;
case 11:
cout<<"B";
break;
case 12:
cout<<"C";
break;
case 13:
cout<<"D";
break;
case 14:
cout<<"E";
break;
case 15:
cout<<"F";
break;
case 16:
cout<<"G";
break;
case 17:
cout<<"H";
break;
case 34:
cout<<"I";
break;
case 18:
cout<<"J";
break;
case 19:
cout<<"K";
break;
case 20:
cout<<"L";
break;
case 21:
cout<<"M";
break;
case 22:
cout<<"N";
break;
case 35:
cout<<"O";
break;
case 23:
cout<<"P";
break;
case 24:
cout<<"Q";
break;
case 25:
cout<<"R";
break;
case 26:
cout<<"S";
break;
case 27:
cout<<"T";
break;
case 28:
cout<<"U";
break;
case 29:
cout<<"V";
break;
case 32:
cout<<"W";
break;
case 30:
cout<<"X";
break;
case 31:
cout<<"Y";
break;
case 33:
cout<<"Z";
break;
}
}
int main(){
int i,a,b,tot,last,sto;
cin>>a;
last=a%10;
a/=10;
for(i=1;i<=8;i++)
{
tot+=i*(a%10);
a/=10;
}
for(b=10;b<=35;b++)
{
sto=tot;
sto=tot+9*(b%10)+(b/10);
if((sto+last)%10==0)
{
c(b);
}
}
cout<<endl;
return 0;
}
明明自己用測資都過,給題目就是不行,和我依樣狀況的就去超吧我也是沒辦法