diff --git a/CP Solutions/Codeforces/365B.cpp b/CP Solutions/Codeforces/365B.cpp new file mode 100644 index 0000000..fc6be60 --- /dev/null +++ b/CP Solutions/Codeforces/365B.cpp @@ -0,0 +1,30 @@ +/*-----Question Link------*/ +http://codeforces.com/contest/365/problem/B +/*------------------------*/ + +#include +#define FAST cin.tie(0);cout.tie(0);ios_base::sync_with_stdio(0) +using namespace std; + +int main() +{ +FAST; +inti(n); +long a[n]; +for(int i=0;i>a[i]; +int t=2,m=2;; +for(int i=2;im) + m=t; + t=2; + } +}if(t>m) +m=t; +cout<