fork download
  1. //0_2.txt
  2. #define R(x,a)for(x=a;x<101;x++)
  3. float c[]={.5,2,1,1,1,6,3,2,1,4,2,2,3,24,12,6,1,6,2,3,2,18,6,6,3,24,6,12,12,360,60,60},S;
  4. long long a;
  5. j,k,l,m,f;
  6. main(i){
  7. scanf("%f",&S);
  8. R(i,0)R(j,i)R(k,j)R(l,k)R(m,97)
  9. a+=i+j+k+l-S*4?0:360/c[(i==j)*16|(j==k)*8|(k==l)*4|m%4]*(m%2?:i)*(m<99?:100-l);
  10. a=!printf("%lld",a);
  11. }
Success #stdin #stdout 0.28s 2164KB
stdin
49.25
stdout
6998725305