Cod sursa(job #1046431)

Utilizator AlexandruValeanuAlexandru Valeanu AlexandruValeanu Data 2 decembrie 2013 21:59:23
Problema Dtcsu Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 1.07 kb
#include <iostream>
#include <fstream>

using namespace std;

const int DIM_BUFF = ( 1 << 14 );

char buffer[DIM_BUFF];
int position = DIM_BUFF;

char GetChar()
{
    if ( position == DIM_BUFF )
    {
        fread( buffer, 1, DIM_BUFF, stdin );
        position = 0;
    }

    return buffer[ position++ ];
}

int read()
{
    long long nr = 0;
    char c;

    do
    {
        c = GetChar();

    } while ( !isdigit( c ) );

    do
    {
        nr = nr * 10 + ( c - '0' );
        c = GetChar();

    } while ( isdigit( c ) );

    return nr;
}

int main()
{
    freopen("dtcsu.in", "r", stdin);
    freopen("dtcsu.out", "w", stdout);

    for ( int i = 1; i <= 276997; ++i )
    {
        long long nr = 0;

        nr = read();

        ///S.insert( nr );
    }

    long long N, numb;
    int number = 0;

    N = read();

    for ( long long i = 1; i <= N; ++i )
    {
        numb = read();

        ///if ( S.find( numb ) != S.end() )
              ///  number++;
    }

    printf("%d\n", number);

    return 0;
}