Codeforces1807A. Plus or Minus Solution

Codeforces1807A. Plus or Minus(Div 4) Problem Question In this guide, we will explore the A Plus or Minus problem, a classic problem in computer programming that requires you to calculate the sum of a series of integers, with each integer being either positive or negative. We will walk you through the process of solving this … Read more

Elephant Codeforces || Codeforces 617A Elephant solution in C++

Elephant Codeforces

Codeforces Elephant Question Elephant Codeforces solution in C++ An elephant decided to visit his friend. It turned out that the elephant’s house is located at point 0 and his friend’s house is located at point x(x > 0) of the coordinate line. In one step the elephant can move 1, 2, 3, 4 or 5 positions forward. Determine, what is the minimum number of steps he need to … Read more

Codeforces next round solution in C,Python || Codeforces 158A. Next Round Solution

codeforces next round solution in c

Codeforces next round solution in C,Python QUESTION 158A. Next Round Solution solution in C #include<stdio.h> int main() { int n,i,k,count=0; int a[100]; scanf(“%d%d”,&n,&k); for(i=0;i<n;i++){ scanf(“%d”,&a[i]);} k=k-1; for(i=0;i<n;i++){ if(a[i]>=a[k]&&a[i]>0){ count++; } } printf(“%d\n”,count); return 0; } 158A. Next Round Solution in Python n,k = map(int,raw_input().split()) L = map(int,raw_input().split()) temp = L[k-1] count=0 for i in range(0,len(L)): … Read more

Codeforces 71a Solution in C, C++

way too long words codeforces solution

Codeforces 71a solution in c ||Codeforces 71a way too long words C, C++ Codeforces 71a Solution ||way too long words Code forces solution Step1: Learning the Problem The question is asking you to abbreviate words that are “so lengthy. A word has been fixed to 10 characters. Anyway, the process for abbreviating it is to … Read more