6 solutions
-
0
#include<bits/stdc++.h> using namespace std; int main() { int n,cut=0,t=0,c=0; cin>>n; for(int i=0;i<=n;i++) { int x,y; cin>>x>>y; if(x>=90 && x<=140 && y>=60 && y<=90) { cut++; } else { c=1; if(cut>=t) { t=cut; cut=0; } else { cut=0; } } } if(c==0) { cout<<cut-1; } else { cout<<t; } }
Information
- ID
- 881
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 1
- Tags
- (None)
- # Submissions
- 179
- Accepted
- 51
- Uploaded By