You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
450 B
20 lines
450 B
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
int count = 0;
|
|
for (int i = 1; i < 100; ++i) {
|
|
for (int j = 1; j < 50; ++j) {
|
|
for (int k = 1; k < 20; ++k) {
|
|
if (i + j * 2 + 5 * k == 100) {
|
|
//cout << i << " " << j << " " << k << endl;
|
|
count++;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
cout << count << endl;
|
|
return 0;
|
|
}
|