All pastes #772758 Raw Edit

Stuff

public text v1 · immutable
·published 2007-11-14 01:22 UTC
rendered paste body
import java.awt.*;
import hsa.*;

public class CCC2007S1FederalVotingAge
{
    static Console c;

    public static void main (String[] args)
    {
	c = new Console ();
	TextInputFile f = new TextInputFile ("s1.3.in");
	int n, y, m, d;

	n = f.readInt ();
	for (int i = 0 ; i < n ; i++)
	{
	    y = f.readInt ();
	    m = f.readInt ();
	    d = f.readInt ();
	    if ((y < 1989) ||
		    (y == 1989 && m < 2) ||
		    (y == 1989 && m == 2 && d <= 27))
		c.println ("Yes");
	    else
		c.println ("No");
	}
    }
}