2011年4月27日 星期三

分享

高中生程式解題系統 d068: 該減肥了

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>


int main(void) 
{
    
    int weight;
    
    while(scanf("%d",&weight)!=EOF)
    {
        printf("%d\n",weight - (weight > 50));
        
    }
    
    return 0;
}

沒有留言:

張貼留言