#include<bits/stdc++.h>
using namespace std;

string s[2010];

int main()
{
	string t;
	int cnt = 1;
	while (cin >> t)
	{
		s[cnt] = t;
		cnt ++;
	}
	int ans = 0;
	for (int i = 1, j = cnt/2+1; i <= cnt/2; i++, j++)
	{
		if (s[i] == s[j]) ans++;
	}
	
	if (ans*1.0/(cnt/2) > 0.75) cout << "failed";
	else cout << "pass";

	return 0;
}

0 条评论

目前还没有评论...

信息

ID
236
时间
1000ms
内存
256MiB
难度
8
标签
递交数
15
已通过
5
上传者