Sort by

recency

|

5 Discussions

|

  • + 1 comment

    Is this homework also include in for kitchen stuff like i want to handle Navy Blue cabinets in kitchen and want to renovate it? Is it possible to do with this algorithm.

  • + 0 comments

    Can i use this method for glass railings Mississauga site.

  • + 0 comments

    Is it also used for floor installation Toronto as a service? Like this algorithm retect autometically which client are more needy then go for it.

  • + 0 comments

    What if A < 0 in the editorial? ;) (Tester's code handles this.)

  • + 1 comment

    here is my o(n) code but still some test cases are failing

    using namespace std;
    int main() {
        int n; 
        cin>>n;
        long double max=0;
        
        for( int x=1; x<n-1; x++)
            {
                if(n>=3)
                {
                    
                
                    long double f=2*sin(x)+sin(n-2*x);
                    if(f>max) max=f;
                     else max;                                   
                }
            }
                
        
        cout.setf(ios::fixed);
        cout << setprecision(9) << max << endl;
        
        return 0;
    }
    

No more comments