Monday, October 3, 2016

UVa 12372 - Packing for Holiday

// UVa 12372 - Packing for Holiday
#include <iostream>
#include <stdio.h>
using namespace std;

int main() {
	int tt;
	cin >> tt;
	for (int t = 1; t <= tt; t++) {
		int a, b, c;
		cin >> a >> b >> c;
		printf("Case %d: ", t);
		if (a > 20 || b > 20 || c > 20)
			printf("bad\n");
		else
			printf("good\n");
	}
	return 0;
}

No comments:

Post a Comment