/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 532.0 KiB
#2 Accepted 1ms 536.0 KiB
#3 Accepted 1ms 536.0 KiB
#4 Accepted 1ms 532.0 KiB
#5 Accepted 1ms 324.0 KiB
#6 Wrong Answer 1ms 532.0 KiB
#7 Wrong Answer 1ms 532.0 KiB

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