fork download
  1. #include <cstdio>
  2.  
  3. int main() {
  4. int a = 2;
  5. int b = 8;
  6. int c = 8;
  7.  
  8. for (int i = a + b + c; i > -10; --i) {
  9. c += b + 17;
  10. }
  11.  
  12. printf("%i\n", c *= a);
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5304KB
stdin
2
5 7
1 2 2
1 4 5
2 3 14
2 4 5
2 5 4
3 5 34
4 5 58
7 11
1 2 40
1 3 8
1 4 11
2 3 29
2 6 17
3 4 3
3 6 31
4 5 46
5 6 40
5 7 15
6 7 53
stdout
1416