第一题:
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
char s[30]="0112358437189887641562819";
long long n;
while(~scanf("%lld",&n))
{
printf("%c\n",s[(n-1)%24+1]);
}
return 0;
}
第一题:
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
char s[30]="0112358437189887641562819";
long long n;
while(~scanf("%lld",&n))
{
printf("%c\n",s[(n-1)%24+1]);
}
return 0;
}