Untitled
unknown
plain_text
3 years ago
361 B
6
Indexable
#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;
}Editor is loading...