2 solutions

  • 4
    @ 2025-3-8 16:22:53
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int a;
        cin>>a;
        int res=a/5;
        if(a%5>=3)
        {
            res++;
        }
        cout<<res*5;
        return 0;
    }
    
    

    Information

    ID
    2322
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    52
    Accepted
    28
    Uploaded By