1 solutions

  • 0
    @ 2025-11-5 19:07:38

    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

    Information

    ID
    19189
    Time
    1000ms
    Memory
    32MiB
    Difficulty
    (None)
    Tags
    (None)
    # Submissions
    0
    Accepted
    0
    Uploaded By