| 19 | } |
| 20 | |
| 21 | int main(){ |
| 22 | ios::sync_with_stdio(0); |
| 23 | cin.tie(0); |
| 24 | int tests,count = 0; |
| 25 | cin >> tests; // taking the number of test cases as input |
| 26 | while(tests--){ |
| 27 | count += solve(); // incrementing the variable count which signifies the number of test cases which returned true (the required answer) |
| 28 | } |
| 29 | cout << count; |
| 30 | } |