http://210.38.224.114:808/JudgeOnline/problem.php?id=1277
大整数mod6;
*10+下一位,进行取模
#include <stdio.h>
#include <cstring>
#include <cmath>
#include <iostream>
using namespace std;
int main()
{
int n;
char a[10000];
cin>>n;
while (n--)
{
cin>>a;
int len=strlen(a);
int f=0;
for (int i=0;i<len;i++)
{
f=f*10+a[i]-'0';
f=f%6;
}
if (f!=0)
{
cout<<"So sorry"<<endl;
}
else
cout<<"Tiantian's luckly number"<<endl;
}
}