Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
P1
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n ; int d ; cin>>d ; int i,j,max=0 ; int str[n]; int sum,s=0 ; for(i=0;i<d;i++){ sum=0 ; for(j=0;j<n;j++){ cin>>str[j] ; sum+=str[j] ; } if(sum==n){ if(max<s) max=s; s=0 ; } else s++ ; } if(max> s) cout<<max ; else cout<< s ; return 0; }
run
|
edit
|
history
|
help
0
multimap
Barnicle
cons1
Web Browser History - DLL
BintTree vertical sum
Dar
ttt
Baaad1
most Frequent word
Exempel 1