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();
    }
}

import java.util.Arrays;


public class HSC {
	public int a;
	public int b;
	
	public HSC(int a, int b) {
		this.a = a;
		this.b = b;
	}
	
	@Override
	public int hashCode() {
		return (int) Math.random();
	}
	
	@Override
	public boolean equals(Object o) {

		if (this == o)  
            return true;  
        if (o == null)  
            return false;  
        if (getClass() != o.getClass())  
            return false;  
        HSC other = (HSC) o;  
        
        return other.a == a && other.b == b;  
	}
}
