Beecrowd 1178 Array Fill III Solution in C, C++|| Beecrowd 1178 || Free Code Center

Beecrowd 1178

Problem link Beecrowd 1178 Array Fill III Solution in C, C++ Read a number X. Put this X at the first position of an array N [100]. In each subsequent position (1 up to 99) put half of the number inserted at the previous position, according to the example below. Print all the vector N. Input The input contains … Read more

Uri 1113 Solution || Beecrowd 1113 Ascending and Descending Solution || Beecrowd 1113 || Free Code Center

Uri 1113 solution

Uri 1113 solution || Beecrowd1113 Ascending and Descending Solution Ascending and Descending Introduction URI Online Judge is a popular platform among developers for practicing coding skills. One of the problems on the platform is “Bee Crowd – 1113 Ascending and Descending,” and in this article, we will provide a comprehensive solution to the problem in … Read more

Beecrowd 1161 Factorial Sum Solution

Beecrowd 1161

Beecrowd 1161 Factorial Sum Solution in C, C++, Java Welcome to our comprehensive guide on URI Factorial Sum Solutions in C, C++, and Java. In this guide, we will provide you with an in-depth understanding of the factorial sum problem and its solutions in these three programming languages. We will also compare and contrast the … Read more

Arrays of Characters in C-1

Arrays of Characters in C

Arrays of Characters in C || Array of characters in c || How to declare an array of characters in c Arrays of Characters in C Here are a few examples of char array problems: 1. Reversing a string: Write a program that takes a string as input and returns the string in reverse order. … Read more

Beecrowd 1071 Sum of Consecutive Odd Numbers I Solution || Beecrowd 1071

Beecrowd 1071

Beecrowd 1071 Sum of Consecutive Odd Numbers I Solution Introduction The URI 1071 problem requires finding the sum of all the odd numbers between two input values. This is a common problem in programming, and it is often used to test a programmer’s skills in loop constructs, conditional statements, and basic arithmetic operations. In this … Read more

Beecrowd-1070 Six Odd Numbers Solution

Beecrowd-1070

Beecrowd-1070 Six Odd Numbers Solution Beecrowd 1070 Six Odd Number Read an integer value X and print the 6 consecutive odd numbers from X, a value per line, including X if it is the case. Input The input will be a positive integer value. Output The output will be a sequence of six odd numbers. Input Sample Output Sample 8 … Read more

Beecrowd 1175 – Array change I Solution

Beecrowd 1175 – Array change I Solution Array change I URI 1175 Array change I Problem: Write a program that reads an array N [20]. After, change the first element by the last, the second element by the penultimate, etc., until changing the 10th to the 11th. Print the modified array. Input: The input contains … Read more

Codeforces734A Anton and Danik solution

Codeforces734A Anton and Danik solution

Codeforces734A Anton and Danik solution in Cpp Question link Codeforces734A Anton and Danik solution. Anton likes to play chess, and so does his friend Danik. Once they have played n games in a row. For each game, it’s known who was the winner — Anton or Danik. None of the games ended with a tie. Now Anton wonders, … Read more

Codeforces 110A Nearly Lucky Number Solution in CPP

Codeforces 110A Nearly Lucky Number Solution

Question link: Codeforces 110A Nearly Lucky Number solution in CPP #include<bits/stdc++.h> using namespace std; int main() { string a; int c=0,z=0; cin>>a; for(int i=0;i<a.size();i++) { if(a[i]==’4’||a[i]==’7′)//Codeforces 110A Nearly Lucky Number solution in CPP c++; } if(c==4||c==7) cout<<“YES”<<endl; else cout<<“NO”<<endl; } Codeforces 734A.Anton and Danik solution in Cpp

Codeforces 977A Wrong Subtraction solution in CPP

Codeforces 977A Wrong Subtraction solution in CPP

Question link: Codeforces 977A Wrong Subtraction solution in CPP Wrong Subtraction #include<bits/stdc++.h> using namespace std; int main() { int n,k,r=0; cin>>n>>k; for(int i=1;i<=k;i++) { r=n%10; if(r==0) { n/=10; } else { n=n-1; } } cout<<n; } Code Explanation This is a C++ code that takes two integers n and k as input from the user, … Read more