top of page

CCC 2020 J1: Dog Treats

This is a very easy question!


S = int(input())
M = int(input())
L = int(input())

re = S + 2*M  + 3*L
if re >= 10:
    print("happy")
else:
    print("sad")

Recent Posts

See All

CCC '23 S2 - Symmetric Mountains

#include  <iostream> #include  <vector> int   main (){ long   long  N; std :: cin  >>  N; std :: vector < long   long >  mins (N  +  ...

Comments


bottom of page