You are on page 1of 1

//

//
//
//
//
//
//

template c++
main.cpp
Created by nicomazz on 22/12/14.
Copyright (c) 2014 nicomazz. All rights reserved.

#include
#include
#include
#include
#include

<iostream>
<list>
<stack>
<vector>
<bitset>

using namespace std;


#define MAXN 100010
typedef pair<int, int> pii;
typedef vector<int> vii;
inline void scanInt(int &x)
{
register int c=getchar_unlocked();
x = 0;
while( c<48 || c>57) c=getchar_unlocked();
for(;c>47 && c<58;c = getchar_unlocked()){x = (x<<1) + (x<<3) + c - 48;}
}
inline void scanIntNeg(int &x)
{
register int c=getchar_unlocked();
x = 0;
bool neg = false;
while( c<48 || c>57) {if (c == '-')neg = true; c=getchar_unlocked();}
for(;c>47 && c<58;c = getchar_unlocked()){x = (x<<1) + (x<<3) + c - 48;}
if (neg) x*=-1;
}
int main(int argc, const char * argv[])
{
freopen("input.txt","r",stdin);
freopen("output.txt","w",stdout);
int N, A,B;
scanInt(N); scanInt(A); scanInt(B);
int da, a, rosso;
for (int i = 0; i < N; i++)
{
scanInt(da); scanInt(a); scanInt(rosso);
}
return 0;
}

You might also like