ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2138. The Good, the Bad and the Ugly

My favorate answer to this question, but dunno y it is not fast enough.
Posted by some_programming_novice 10 Nov 2019 10:24
union message
{
    char bytes[4];
    unsigned value;
    void reverse()
    {
        swap(bytes[0], bytes[3]);
        swap(bytes[1], bytes[2]);
    }
};
Re: My favorate answer to this question, but dunno y it is not fast enough.
Posted by Egor 20 Sep 2020 23:23
Wow! That's unexpected =)
Re: My favorate answer to this question, but dunno y it is not fast enough.
Posted by GeekCmore 10 Dec 2022 16:44
Wonderful!