ZOJ

//水题
#include <cstdio>
#include <iostream>
using namespace std;
int a[25];
int main()
{
	int t, n;
	cin >> t;
	while (t--)
	{
		cin >> n;
		int mark1 = 0, mark2 = 0;
		for (int i = 0; i < n; i++) 
		{
			cin >> a[i];
			
			switch(a[i])
			{
				case 1: mark1++; break;
				case 2: mark2++; break;
		//		case 3: mark1++; mark2++; break;
		//		case 4: mark1--; mark2--; break;
			}
		}
		if (mark1 > mark2) cout << "Kobayashi" << endl;
		else if (mark1 < mark2) cout << "Tohru" << endl; 
		else cout << "Draw" << endl;

	}
	return 0;
}

原文地址:https://www.cnblogs.com/mofushaohua/p/7789447.html