Problem Type : Ad hoc
#include<stdio.h>
int main()
{
unsigned long long n,ans;
while(scanf("%llu",&n)==1)
{
if(n==0)
break;
else if(n%9==0)
{
ans=(n*9)/10;
printf("%.0llu %.0llu\n",ans-1,ans);
}
else if(n%9!=0)
{
ans=(n*9)/10;
printf("%.0llu\n",ans);
}
}
return 0;
}
No comments:
Post a Comment