Cod sursa(job #1709144)

Utilizator alexandra_paticaAndreea Alexandra Patica alexandra_patica Data 28 mai 2016 11:01:48
Problema Revolta Scor 0
Compilator cpp Status done
Runda ONIS 2016 - Runda - 2 - ACM ICPC Romanian Programming Contest Marime 0.28 kb
#include <fstream>
using namespace std;
ifstream f ("revolta.in");
ofstream g ("revolta.out");
int t, n, i, j, x, y;
int main ()
{
    f >> t;
    for (j=1; j<=t; j++){
        f >> n;
        for (i=1; i<n; i++)
            f >> x >> y;
        g << (n/2) << '\n';
    }
}