Cod sursa(job #959347)

Utilizator deneoAdrian Craciun deneo Data 8 iunie 2013 11:40:20
Problema Nowhere-zero Scor 0
Compilator cpp Status done
Runda Infoarena Cup 2013 Marime 0.42 kb
#include <fstream>
#include <iostream>
using namespace std;

ifstream fin("nowhere-zero.in");
ofstream fout("nowhere-zero.out");

int N, M;

int main() {
    fin >> N >> M;

    for (int i = 1; i <= N; ++i) {
        double x, y;
        fin >> x >> y;
    }

    for (int i = 1; i <= M; ++i) {
        int x, y;
        fin >> x >> y;
        fout << x << " " << y << " " << 1 << "\n";
    }

    return 0;
}