fork download
  1. #include <stdio.h>
  2.  
  3. int func2(int x,int a, int b,int c){
  4. return a*x*x+b*x+c;
  5. }
  6.  
  7. int main(){
  8. int n,a,b,c,x,y,z,X;
  9. scanf("%d%d%d%d %d %d %d",&n,&a,&b,&c,&x,&y,&z);
  10. X =func2(n,a,b,c);
  11. printf("%d",func2(X,x,y,z));
  12.  
  13. }
  14.  
  15.  
Success #stdin #stdout 0s 9424KB
stdin
-1
3 0 -10
1 -3 1
stdout
71