SGU 467 Chessmaster 几何

------------------

int n;
int main(){
	int cas=0;
	while (~scanf("%d",&n)){
        int ans=0;
        if (n==0) ans=0;
        else if (n<=78) ans=1;
        else if (n<=95) ans=2;
        else if (n<=99) ans=3;
        else ans=4;
        printf("Case #%d: %d\n",++cas,ans);
	}
	return 0;
}


------------------

posted on 2014-01-13 20:40  电子幼体  阅读(176)  评论(0编辑  收藏  举报

导航