package com.menzus.gcj._2012.qualification.c;

import com.menzus.gcj.common.InputBlockParser;
import com.menzus.gcj.common.OutputProducer;
import com.menzus.gcj.common.impl.AbstractProcessorFactory;

public class CProcessorFactory extends AbstractProcessorFactory<CInput, COutputEntry> {
    public CProcessorFactory(String inputFileName) {
	super(inputFileName);
    }

    @Override
    protected InputBlockParser<CInput> createInputBlockParser() {
	return new CInputBlockParser();
    }

    @Override
    protected OutputProducer<CInput, COutputEntry> createOutputProducer() {
	return new COutputProducer();
    }
}

package Television;

public class Pair{
	public int a, b;
	public Pair(int a, int b)throws Exception
	{
		if(a>=b)
			throw new Exception("invalid input for pair");
		this.a=a;
		this.b=b;
	}
	
	public boolean equls(Object po)
	{
		Pair p = (Pair)po;
		if(p.a == this.a && p.b==this.b)
			return true;
		return false;
	}
	public boolean equls(Pair p)
	{		
		if(p.a == this.a && p.b==this.b)
			return true;
		return false;
	}
}
