标签:io 2014 amp on return print sp include
#include <stdio.h>
int main()
{
int T;
scanf("%d",&T);
while(T--)
{
int sum;
long long a,b;
scanf("%lld %lld",&a,&b);
if(a==0||b==0)
{
sum=0;
}
else
{
sum=(a%9)*(b%9)%9;
if(sum==0)
sum=9;
}
printf("%d\n",sum);
}
return 0;
}
485-A*B Problem-nyoj20140808,布布扣,bubuko.com
标签:io 2014 amp on return print sp include
原文地址:http://www.cnblogs.com/xiaziteng/p/3900092.html