Wrong Answer
Code
#include <bits/stdc++.h>
#define ll long long int
using namespace std;
int main() {
// your code goes here
ios_base::sync_with_stdio(false);
cin.tie(NULL);
ll t=1;
// cin>>t;
while(t--){
ll a,b,c;
cin>>a>>b>>c;
ll ans1=120-a, ans2=360-a+120;
ll ans3=120-b, ans4=360-b+120;
ll ans5=120-c, ans6=360-c+120;
cout<<(abs(ans1)<abs(ans2) ? ans1:ans2)<<" "<<(abs(ans3)<abs(ans4) ? ans3:ans4)<<" "<<(abs(ans5)<abs(ans6) ? ans5:ans6)<<endl;
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1130 Angle Equalizer
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2025-01-02 17:26:32
- Judged At
- 2025-01-02 17:26:32
- Judged By
- Score
- 28
- Total Time
- 1ms
- Peak Memory
- 536.0 KiB