1 条题解

  • 1
    @ 2025-12-27 11:10:10
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int a,b,mx=0,mn=10001;
    	cin>>a;
    	for(int i=0;i<a;i++)
    	{
    		cin>>b;
    		if(b>mx) mx=b;
    		if(b<mn) mn=b;
    	}
    	cout<<mn<<" "<<mx;
    	return 0;
    }
    • 1

    信息

    ID
    166
    时间
    1000ms
    内存
    128MiB
    难度
    7
    标签
    递交数
    30
    已通过
    8
    上传者