Untitled
Anonymous
plain_text
11/06/2022 2:32 PM
472 B
21
Indexable
#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL, "Russian");
int a,b=0,c=0,d=0;
cin >> a;
while (a < 34) {
a -= 34;
d++;
}
while (a < 8) {
a -= 10;
c++;
}
while (a < 0) {
a -= 1;
b++;
}
cout << b << " " << c << " " << d;
}Editor is loading...