Accepted
Code
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c;
cin>>a>>b>>c;
if (a==120)
{
cout<<0<<" ";
}
else if (a>120)
{
cout<<120-a<<" ";
}
else
{
cout<<120-a<<" ";
}
if (b==120)
{
cout<<0<<" ";
}
else if (b>120)
{
cout<<120-b<<" ";
}
else
{
cout<<120-b<<" ";
}
if (c==120)
{
cout<<0<<" ";
}
else if (c>120)
{
cout<<120-c<<" ";
}
else
{
cout<<120-c<<" ";
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1130 Angle Equalizer
- Contest
- Happy New Year 2025
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-01-02 14:45:49
- Judged At
- 2025-01-02 14:45:49
- Judged By
- Score
- 100
- Total Time
- 2ms
- Peak Memory
- 772.0 KiB