OJ-Problems-Source/HDOJ/1163_autoAC.cpp

10 lines
169 B
C++
Raw Normal View History

2016-08-13 10:51:15 +08:00
#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;
}