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.
22 lines
461 B
22 lines
461 B
#include <bits/stdc++.h>
|
|
using namespace std;
|
|
|
|
int main() {
|
|
for (int i = 1;; i++) {
|
|
int flag = 0;
|
|
int x = i;
|
|
for (int j = 1; j <= 5; j++) {
|
|
if ((x - 1 <= 0) || (x - 1) % 5 > 0) {
|
|
flag = 1;
|
|
break;
|
|
}
|
|
x = (x - 1) / 5 * (5 - 1);
|
|
}
|
|
if (flag == 0) {
|
|
cout << i << endl;
|
|
exit(0);
|
|
}
|
|
}
|
|
|
|
return 0;
|
|
} |