2009年5月26日 星期二

ACM Q10696

import java.util.Scanner;
public class Q10696 {
public static void main(String args[]) {
Scanner cin = new Scanner(System.in);
int count=0;
while(cin.hasNextInt()){
int N = cin.nextInt();
count++;
if(N==0 || count >=250000){
break;
}else{
if(N>=101 ){
int tmp = N-10;
System.out.println("f91("+N+") = "+tmp);
}else{
System.out.println("f91("+N+") = 91");
}
}
}
}
}

沒有留言:

張貼留言