diff --git a/problem: Ksusha and Array b/problem: Ksusha and Array new file mode 100644 index 0000000..38d0867 --- /dev/null +++ b/problem: Ksusha and Array @@ -0,0 +1,45 @@ +//This is the first for me to ask, so if you see the question published it is an achivement :) +//How can i solve the problem of "Time limit exceeded" on codeforces for problem: A. Ksusha and Array? +//the time exceeded at test case number 22, if you can help i'll be very greatful to you +//this is my code: + +#include +using namespace std; + +int main() +{ + const int max_capacity= 10e5; + int arr[max_capacity]; + int flag; + + int actual_size; + cin>> actual_size; + + for(int i=0; i> arr[i]; + + for(int n=0; n