Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
361 B
1
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
    setlocale(LC_ALL, "Russian");
    int a, b=0, c=0, d=0;
    cin >> a;
    while (a > 60) {
        a -= 60;
        b++;
    }
    while (a > 1) {
        a -= 10;
        c++;
    }
    while (a == 1) {
        a -= 1;
        d++;
    }
    cout << d << " " << c << " " << b;


}