Задачи
Найбільшее из меньших
for üçün 3 i yazırıq burda niyə 2 i yazmalıyıq? C DİLİ
include <iostream>
include <algorithm>
int main() { int n; std::cin >> n; int max = (n / 11) * 11;
if (max >= n) {
std::cout << max - 11 << std::endl;
} else {
std::cout << max << std::endl;
}
return 0;
}//100%
include <iostream>
include <algorithm>
int main() { int n; std::cin >> n; int max = (n / 11) * 11;
if (max >= n) {
std::cout << max - 11 << std::endl;
} else {
std::cout << max << std::endl;
}
return 0;
}
include <iostream>
include <algorithm>
int main() { int n; std::cin >> n; int max = (n / 11) * 11;
if (max >= n) {
std::cout << max - 11 << std::endl;
} else {
std::cout << max << std::endl;
}
return 0;
}
include <iostream>
include <algorithm>
int main() { int n; std::cin >> n; int max = (n / 11) * 11;
if (max >= n) {
std::cout << max - 11 << std::endl;
} else {
std::cout << max << std::endl;
}
return 0;
}
include <iostream>
include <algorithm>
int main() { int n; std::cin >> n; int max = (n / 11) * 11;
if (max >= n) {
std::cout << max - 11 << std::endl;
} else {
std::cout << max << std::endl;
}
return 0;
}//KÖÇÜRÜN GETSİNEE