5 solutions

  • 1
    @ 2025-12-16 21:57:42
    #include<bits/stdc++.h>
    using namespace std;
    int n;
    int main()
    {
    	cin>>n;
    	cout<<((n%4)>=2)<<" "<<((n%4)%2)<<" "<<(n/4-(n%4>=1)-(n%4>=3));
    	return 0;
    }
    

    Information

    ID
    42
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    243
    Accepted
    89
    Uploaded By