Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int a[2000];
- int main(){
- ifstream cin ("INPUT.TXT");
- ofstream cout ("OUTPUT.TXT");
- int n;
- cin >>n;
- for (int i=0; i<n; i++){
- cin>>a[i];
- }
- int x=437;
- int ans=0;
- for (int i=0; i<n; i++){
- if((a[i]>x){
- cout<<"Crash "<<i+1;
- return 0;
- }
- }
- cout<<"No crash";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement