@root

ykj04 Hi 2022-10-18 14:50:44 1
#include<bits/stdc++.h>
using namespace std;
int bs[1000010];
int main(){
	cout << "自动忽略第0组测试数据" << endl; 
	string a;
	int n;
	cout << "请输入测试点个数" << endl;
	cin >> n;
	//AC,WA判断
	string b;
	string c;
	int i=1;
	for (int i=0;i<=n;i++)
	{
		b.clear();
		c.clear();
		cout << "请输入第" << i << "组测试数据";
		cout << endl;
		getline(cin,b);
		cout << "请输入用户输出" << endl;
		getline(cin,c);
		for(int j=1;j<=b.length();j++)
		{
			if (b[j]!=c[j])
			{
				bs[i]=0;
				continue;
			}
			bs[i]=100/n;
		}
	}
	int sum=0;
	for (int i=1;i<=n;i++)
	{
		sum+=bs[i];
	}
	if (sum==(100/n)*n)
	{
		cout << "Accepted 100" << endl;
		for(int i=1;i<=n;i++)
		{
			cout << "testing place " << i << ": " << bs[i] << endl; 
		}
	}
	else
	{
		cout << "Wrong Answer " << sum << endl;
		for(int i=1;i<=n;i++)
		{
			cout << "testing place " << i << ": " << bs[i] << endl;
		}
    }
    return 0;
}
{{ vote && vote.total.up }}