Mock CCC '19 Contest 1 J1 - Pusheen's Report Card

View as PDF

Submit solution


Points: 3 (partial)
Time limit: 1.0s
Memory limit: 1G

Problem type

Pusheen recently got her report card back! Pusheen took two classes last semester, CS452 and PHIL145. She was rather burnt out from all the critical thinking and real-time programming that she had to do, so she needs your help to figure out which one she did better in.

Constraints

0 \le A \le 100

0 \le B \le 100

In tests worth 14 marks, A = B.

Input Specification

The first line of input contains a single integer, A, Pusheen's mark in CS452.

The second line of input contains a single integer, B, Pusheen's mark in PHIL145.

Output Specification

Output, on a single line, which course Pusheen did better in. If she did equally well in both courses, do not output anything.

Sample Input

100
0

Sample Output

CS452

Sample Explanation

Pusheen was really good at real-time programming but clearly had problems with critical thinking, so she got a 100 in CS452 and a 0 in PHIL145, and thus did better in CS452.


Comments


  • 1
    Galaxy_Kenneth  commented on Oct. 5, 2021, 2:11 p.m.

    Why does the code I submitted show WA when it works on a C++ compiler like Replit?


    • 0
      Nils_Emmenegger  commented on Oct. 5, 2021, 5:47 p.m.

      If she did equally well in both courses, do not output anything

      Outputting a blank line (i.e. cout << endl in C++) != outputting nothing


    • -1
      Itachi  commented on Oct. 5, 2021, 5:02 p.m.

      Did you test every possible input in Replit? Or did you only test a handful before incorrectly coming to the conclusion that your code is correct?