第一题:
#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;
}
2013湖南大学Acm/Icpc邀请赛 --热身题
阅读 128
2022-11-17
第一题:
#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;
}
相关推荐
精彩评论(0)