/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 2ms 540.0 KiB
#2 Wrong Answer 29ms 544.0 KiB
#3 Wrong Answer 30ms 556.0 KiB

Code

#include <bits/stdc++.h>
#include <algorithm>
using namespace std;

//SAYED AL MAMUN_LU

void slv()
{
    int a,b,c;
    cin>>a>>b>>c;
    
    int min_Value = min({a,b,c});
    
    int operation=0;
    
    if(a > min_Value)
    {
        operation++;
    }
    if(b > min_Value)
    {
        operation++;
    }
    if(c > min_Value)
    {
        operation++;
    }
    
    cout<<operation<<endl;
}
int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        slv();
    }
}

Information

Submit By
Type
Submission
Problem
P1061 Bring equality
Contest
Brain Booster #4
Language
C++17 (G++ 13.2.0)
Submit At
2024-07-14 17:43:31
Judged At
2024-11-11 03:22:43
Judged By
Score
10
Total Time
30ms
Peak Memory
556.0 KiB