Tuesday, March 18, 2014

Codeforces Round #143 (Div. 2), problem: (A) Team solution

Codeforces Round #143 (Div. 2), problem: (A) Team: http://codeforces.com/problemset/problem/231/A

Codeforces Round #143 (Div. 2), problem: (A) Team solution: http://ideone.com/0HAJa1


#include <iostream>
#include <cstdio>
using namespace std;

int main() {
    int n, a, b, c, r;
    r=0;
    scanf("%d", &n);
    while(n--) {
        scanf("%d%d%d", &a, &b, &c);
        r+=(a+b+c)/2;
    }
    printf("%d", r);
    return 0;
}

No comments:

Post a Comment