Codeforces Round 340 A. Elephant

#include<bits/stdc++.h>

using namespace std;

#define fast ios_base::sync_with_stdio(false)
#define high 300010

typedef long long LL;

int main()
{
    fast;
    LL n;
    while(cin >> n)
    {
        LL ans = (n%5) ? (n/5) + 1 : n/5;

        cout << ans << "\n";
    }

    return 0;
}

Comments

Popular posts from this blog

SPOJ-CMG - Collecting Mango

LightOJ 1009 - Back to Underworld

LeetCode Palindrome Number