The problem link is UVa:10696-f91
Difficulty Level : 1.0
Solution:
#include<stdio.h> int main() { long n; while(scanf("%ld",&n)==1) { if(n==0) break; else if(n>=101) printf("f91(%ld) = %ld",n,n-10); else printf("f91(%ld) = 91",n); printf("\n"); } return 0; }
Run time: 0.076
User Name on UVA: refatsardar
Leave a comment