UVA Problem ID :10696(Why I am getting Presentation error?)

General topic about Valladolid Online Judge

Moderator: Board moderators

UVA Problem ID :10696(Why I am getting Presentation error?)

Postby Enayet Kabir » Thu Jun 14, 2012 10:09 pm

Here is my source code:
=========================
#include<stdio.h>
long N,result;
long int Mc(long int );
int main()
{

while(scanf("%ld",&N)==1)
{
if(N==0) break;
else
{
result=Mc(N);
printf("f91(%ld) = %ld\n",N,result);
}
}
return 0;
}

long Mc(long int N)
{
if(N>=101)
return (N-10);
else
return (Mc(Mc(N+11)));
}
Enayet Kabir
New poster
 
Posts: 7
Joined: Mon Jun 04, 2012 3:03 pm

Re: UVA Problem ID :10696(Why I am getting Presentation erro

Postby brianfry713 » Fri Jun 15, 2012 9:04 pm

That is AC code.
brianfry713
Guru
 
Posts: 1754
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest