Untitled

Anonymous
c_cpp
10/29/2023 9:19 AM
372 B
16
Indexable
#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";
}

Editor is loading...