2 条题解

  • 0
    @ 2026-2-23 12:02:17
    #include<bits/stdc++.h>
    using namespace std; 
    int main () 
    { 
    	int a[10],b[10],c=0,d=0,e=0;
    	for(int i=0;i<10;i++)
    		cin>>a[i];
    	for(int i=0;i<10;i++)
    		cin>>b[i];
    	for(int i=0;i<10;i++)
    	{
    		if(a[i]>b[i]) c++;
    		else if(a[i]==b[i]) d++;
    		else if(a[i]<b[i]) e++;
    	}
    	if(d==10||c==e) cout<<c<<" "<<d<<" "<<e<<endl<<"a=b";
    	else
    	{
    		if(c>e) cout<<c<<" "<<d<<" "<<e<<endl<<"a>b";
    		else if(c<e) cout<<c<<" "<<d<<" "<<e<<endl<<"a<b";
    	}
    	return 0; 
    }

    信息

    ID
    236
    时间
    1000ms
    内存
    64MiB
    难度
    10
    标签
    递交数
    9
    已通过
    3
    上传者