fork download
  1. #include<stdio.h>
  2.  
  3. int main(){
  4. int c=0;
  5. int a[33];
  6. int k,s,u;
  7. a[0]=2;
  8. a[1]=-1;
  9. for(int i=0;i<31;i++){
  10. a[i+2]=0-a[i+1]+a[i]+2;
  11. }
  12. printf("%d",a[32]);
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
6534929