5 solutions

  • 0
    @ 2026-1-16 19:26:44
    #include<bits/stdc++.h>
    using namespace std;
    int n;
    int main(){
    	cin>>n;
    	int r=n/5;
    	if(n%5>=3){
    		r++;
    	}
    	cout<<r*5;
    	return 0;
    }
    

    Information

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