diff --git a/answers/ChimeraElixir/Increasing_array.cpp b/answers/ChimeraElixir/Increasing_array.cpp new file mode 100644 index 0000000..139cebc --- /dev/null +++ b/answers/ChimeraElixir/Increasing_array.cpp @@ -0,0 +1,31 @@ +#include +using namespace std; +#define ll long long +#define loop for(ll i=0;i>n; + ll count=0; + ll array[n]; + + loop{ + cin>>array[i]; + } + + loop{ + if(array[i]>array[i+1]){ + count+=abs(array[i]-array[i+1]); + array[i+1]=array[i]; + } + } + + cout< +#include +using namespace std; +#define ll long long +#define loop for(ll i=0;i>n; + vector v; + + + + if(n==1){ + cout<<'1'< +using namespace std; + +int main(){ +#ifndef ONLINE_JUDGE + freopen("input.txt", "r", stdin); + freopen("output.txt", "w", stdout); +#endif + string s; + cin>>s; + int occurance=1,best=0; + + for (int i=0;i