HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Forums > Discussion of problems > topic:


Problem "Variant 16"

EEM-Altynai.Amangeldi kiziOct.12.2025 at 04:28:55 PM
0#include <iostream>
using namespace std;

int main() {
int N;
cin >> N;
bool result = false;

for (int a = 1; a <= N; a++) {
for (int b = a + 1; b <= N; b++) {
int c = b + 1;
if (a * b * c == N) {
result = true;
break;
}

if (a * b * c > N) {
break;
}
}

if (result) {
break;
}
}


www.contester.ru