1 solutions

  • 0
    @ 2025-12-3 11:07:49

    C++ :

    #include <iostream>
    #include <stdio.h>
    #include <algorithm>
    using namespace std;
    int a,b,c,d;
    int main()
    {
    //	freopen("8k.in","r",stdin);
    //	freopen("8k.out","w",stdout);
    	cin >>a>>b>>c;
        if (a>b) swap(a,b);
    	if(a>c) swap(a,c);
    	if (b>c) swap(b,c);
    	cout << b<< endl;
    	return 0;
    }
    
    
    
    
    • 1

    Information

    ID
    822
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    9
    Tags
    (None)
    # Submissions
    9
    Accepted
    6
    Uploaded By