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 2021 S3 Lunch Concert

#include <iostream> #include <stack> #include <cmath> #include <string.h> #include <algorithm> #include <stack> #include <vector>...

CCC '23 S2 - Symmetric Mountains

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

CCC '24 J5 - Harvest Waterloo

#include<iostream> #include <vector> #include <algorithm> #include <cmath> #include <stack> using namespace std; int main() { int r, c,...

Comments


One-time Donations
I hope I can solve all CCC problems!,
Please e-transfer cccottawa862008@gmail.com

Subscribe to AIOICode newsletter

I'm a title. ​Click here to edit me.

Thanks for submitting!

  • Twitter
  • Facebook
  • Linkedin

© 2023 by AIOICode.

bottom of page