Untitled
#include <iostream> #include <string> #include <math.h> int main() { int n; int m = 437; std::cin >> n; for (int i = 1; i <= n; i++) { int a; std::cin >> a; if (a <= m) { std::cout << "Crash " << i; return 0; } } std::cout << "No crash"; }
#include <iostream> #include <string> #include <math.h> int main() { int n; int m = 437; std::cin >> n; for (int i = 1; i <= n; i++) { int a; std::cin >> a; if (a <= m) { std::cout << "Crash " << i; return 0; } } std::cout << "No crash"; }