mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
10 lines
169 B
C++
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;
|
|
}
|