Beecrowd 1013 solution- The Greatest

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:


The input file contains 3 integer values.


Print the greatest of these three values followed by a space and the message “eh o maior”.

Input SamplesOutput Samples
7 14 106106 eh o maior

Beecrowd 1013 solution- The Greatest solution in C


int main() {

int a,b,c,d;
printf("%d eh o maior\n",d);

return 0;


Beecrowd 1013 solution- The Greatest solution in C++

using namespace std;

int main() {

int a,b,c,d;

cout<<d<<" eh o maior"<<endl;

return 0;


The Greatest Solution in Python

a, b, c = map(int, input().split())

d = (a + b + abs(a - b)) // 2
d = (d + c + abs(d - c)) // 2

print(f"{d} eh o maior")

Next problem:BEECROWD 1014 – Consumption Solution

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
NEW TOXIC ROCKET CYCLE DECK in Clash Royale 2023 Best Deck in Clash Royale Best Deck for Arena 8 in Clash Royale Best Hog deck for Pro players Best Clash Royale Deck