1 条题解

  • 0
    @ 2025-4-12 21:56:18

    C++ :

    #include <iostream>
    #include <string>
    #include <fstream>
    using namespace std;
    int main()
    {
    	//ifstream cin;
    	//ofstream cout;
    	//cin.open("A_1.in");
    	//cout.open("A_1.out");
    	double highest=0;
    	double tmp;
    	int testcase;
    	cin>>testcase;
    	while(testcase--)
    	{
    		cin>>tmp;
    		if(tmp<1.4 || tmp>2.26)
    			continue;
    		if(tmp>highest)
    			highest=tmp;
    	}
    	cout<<highest<<endl;
    	
    	return 0;
    }
    
    
    • 1

    信息

    ID
    2565
    时间
    1000ms
    内存
    32MiB
    难度
    (无)
    标签
    (无)
    递交数
    0
    已通过
    0
    上传者