1 solutions

  • 0
    @ 2025-12-3 17:06:18

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int n;
    int main()
    {
    	cin>>n;
    	if(n<=60) cout<<3;
    	else{
    		n-=60;
    		int t=n/60;
    		if(n%60!=0) t++;
    		cout<<3+t*5;
    	} 
    	
        return 0;
    }
    
    • 1

    Information

    ID
    954
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    10
    Tags
    # Submissions
    1
    Accepted
    1
    Uploaded By