0_0_13803648_8536.cpp:1:541: fatal error: GCC4.9.2/lib/gcc/x86_64-w64-mingw32/4.9.2/include/iostream>usin: Invalid argument
#include<iostream>using namespace std;int main(){ int total,a,b,c; while(scanf("%d%d%d%d",&total,&a,&b,&c),total||a||b||c){ double now=9*a+4*b+4*c; if(now==total){ printf("yes\n"); }else if(now>total){ double temp=now-total; double f=0; if(a>0){ f+=0.5*9; } if(b>0){ f+=0.5*4; } if(c>0){ f+=0.5*4; } if(f>temp){ printf("yes\n"); }else{ printf("no\n"); } }else{ double temp=total-now; double f=0.5*9+0.5*4+0.5*4; if(f>temp){ printf("yes\n"); }else{ printf("no\n"); } } } return 0;}
^
compilation terminated.
|