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

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 the result using f-strings (print(f”c minutos”)).

Next problem: Beecrowd1041 – Coordinates of a Point 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