Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- long long t,a,x,y;
- cin>>t>>a;
- y=0;
- while(t>0)
- {
- cin>>x;
- if(a>=x)
- {
- cout<<"It hadn't snowed this early in"<<" "<<y<<" "<<"years!"<<endl;
- break;
- }
- else if(y==t-1)
- {
- cout<<"It had never snowed this early!"<<endl;
- }
- else
- {
- y+=1;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment