Beecrowd 1020 Solution in C, C++ & Python

Beecrowd 1020 Solution

URI – BEECROWD – BEE Online Judge || Age In Days – URI – BEE 1020 Solution in C,C++, Python Question Beecrowd 1020 Solution in C #include <stdio.h> int main() { int d,y,m; scanf(“%d”,&d); y=0; m=0; y=d/365; d=d%365; m=d/30; d=d%30; printf(“%d ano(s)\n%d mes(es)\n%d dia(s)\n”,y,m,d); return 0; } Bee1020 Solution in C++ #include <iostream> using namespace … Read more

Beecrowd 1019 solution || URI 1019 Time Conversion

Beecrowd 1019 solution

URI – BEECROWD – BEE 1019 Time Conversion Solutions in C, C++, and Python || Beecrowd 1019 solution Question Beecrowd 1019 solution Beecrowd 1019 solution presents the classic scheduling challenge: time shifting. In the challenge, times in seconds are converted to hours, minutes and seconds. This seemingly simple task requires a deep understanding of time … Read more

Uri 1173 Solution || Beecrowd 1173 – Array fill I solution in C,CPP

Uri 1173 Solution

Uri 1173 Solution || Beecrowd 1173 – Array fill I solution Question link: Beecrowd 1173 – Array fill I solution in C #include <stdio.h>int main() { int N[10],i,d; scanf(“%d”,&d); for(i=0;i<10;i++){ N[i]=d; printf(“N[%d] = %d\n”,i,d);d*=2; } return 0;} Beecrowd 1173 – Array fill I solution in C++ Beecrowd 1173 – Array fill I solution in Python … Read more

Uri 1172 solution || Beecrowd 1172 – Array Replacement I solution in C , Python || Free Code Center

Uri 1172 solution

Uri 1172 Solution || Beecrowd 1172 – Array Replacement I solution Question link: Beecrowd 1172 – Array Replacement I solution in C #include <stdio.h> int main() { int X[10],i; for(i=0;i<10;i++){ scanf(“%d”,&X[i]); } for(i=0;i<10;i++){ if(X[i]==0||X[i]<0) {X[i]=1;} } for(i=0;i<10;i++){ printf(“X[%d] = %d\n”,i,X[i]); } return 0; } Beecrowd 1172 – Array Replacement I solution in Python def main(): … Read more

Uri 1159 Solution || Beecrowd 1159 Solution

Uri 1159 Solution

Question Uri 1159 Solution || Beecrowd 1159 Solution ||Sum of Consecutive Even Numbers solution in C The program must read an integer X indefinite times (stop when X=0). For each X, print the sum of five consecutive even numbers from X, including it if X is even. If the input number is 4, for example, the output must be 40, that is … Read more

Beecrowd 1043 solution in C ,C++ || Uri 1043 || Free Code Center

Beecrowd 1043 solution

Beecrowd-1043 Triangle-solution ||Beecrowd 1043 solution Triangle beecrowd | 1043 Read three-point floating values (A, B, and C) and verify if is possible to make a triangle with them. If it is possible, calculate the perimeter of the triangle and print the message: Perimetro = XX.X If it is not possible, calculate the area of the … Read more

Beecrowd 1016 Solution in C, Python || Beecrowd 1016 -Distance solution || URI 1016

beecrowd 1016 solution

Question Beecrowd 1016 Solution Solution in C #include<stdio.h> int main() { int a,c; scanf(“%d”,&a); c=2*a; printf(“%d minutos\n”,c); return 0; } Solution in Python a = int(input()) c = 2 * a print(f”{c} minutos”) The Python program reads an integer from the user using the input() method, computes c = 2 * a, and then prints … Read more

Beecrowd 1015-Distance Between Two Points solution in C,Python

Beecrowd 1015-Distance Between Two Points solution Solution in C #include<stdio.h> int main(){ double x1,x2,y1,y2,d; scanf(“%lf%lf%lf%lf”,&x1,&y1,&x2,&y2); d=sqrt(pow(x2-x1,2)+pow(y2-y1,2)); printf(“%.4lf\n”,d); return 0; } Solution in C++ Solution in Python import math x1, y1, x2, y2 = map(float, input().split()) d = math.sqrt((x2 – x1) ** 2 + (y2 – y1) ** 2) print(f”{d:.4f}”) Next problem: Beecrowd 1016 -Distance solution

Beecrowd 1013 solution- The Greatest

Beecrowd 1013

Beecrowd 1013- The Greatest solution Question Make a program that reads 3 integer values and present the greatest one followed by the message “eh o maior”. Use the following formula: Input The input file contains 3 integer values. Output Print the greatest of these three values followed by a space and the message “eh o … Read more

Beecrowd 1012-Area solution C, CPP and Python || Beecrowd 1012 || Free Code Center

Beecrowd 1012-Area solution

Beecrowd 1012-Area solution C, CPP and Python Question link beecrowd | 1012 Area Make a program that reads three floating point values: A, B and C. Then, calculate and show:a) the area of the rectangled triangle that has base A and height C.b) the area of the radius’s circle C. (pi = 3.14159)c) the area … Read more