Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
337 B
0
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
    int n , i, j, c;
    cin >> n;

    while (n > 34)
    {
        n -= 60;
        i++;
    }
    while (n > 8)
    {
        n -= 10;
        j++;
    }
    while (n > 0)
    {
        n -= 1;
        c++;
    }
    cout << c << " " << j << " " << i;
}