Tamflexの貯蔵庫

やる気のない備忘録

aoj 0048

階級 | Aizu Online Judge

「やるだけ」なのに何故か頑張ってしまった...(277 byte)

上には上がいるみたいです(T T)
AIZU ONLINE JUDGE

#include <bits/stdc++.h>
main(){char* s[]={"light fly","fly","bantam","feather","light","light welter","welter","light middle","middle","light heavy","heavy"};float f[]={0,48,51,54,57,60,64,69,75,81,91,1e9};while(std::cin>>*f){int i=1;for(;*f>f[i++];){}printf("%s\n",s[i-2]);}}