OJ-Problems-Source/HDOJ/1163_autoAC.cpp
2016-08-13 10:51:15 +08:00

10 lines
169 B
C++

#include<stdio.h>
int main()
{
int n;
char s[20]="149429719159479789";
while(~scanf("%d",&n),n)
printf("%c\n",s[(n-1)%18]);
return 0;
}