fork download
  1.  
  2.  
  3.  
  4.  
  5.  
  6. #include <stdio.h>
  7.  
  8. int main() {
  9. long long a = 6, sum = a;
  10.  
  11. for (int i = 1; i < 10; i++) {
  12. a = a * 3 + 1;
  13. sum += a;
  14. }
  15.  
  16. printf("%lld\n", sum);
  17. return 0;
  18. }
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
191901