- #include <bits/stdc++.h>
- using namespace std;
- int main(){
- int t, n, m, cs = 0;
- cin >> t;
- while(t--){
- cin >> n;
- int ans = 0;
- for(int i = 0; i < n; i++){
- cin >> m;
- if(m > 0)ans += m;
- }
- cout << "Case " << ++cs << ": " << ans << endl;
- }
- return 0;
- }
No comments:
Post a Comment