DMPG '18 B1 - Pizza Orders

View as PDF

Submit solution

Points: 3
Time limit: 1.0s
Memory limit: 64M

Author:
Problem type
Allowed languages
Ada, Assembly, Awk, Brain****, C, C#, C++, COBOL, CommonLisp, D, Dart, F#, Forth, Fortran, Go, Groovy, Haskell, Intercal, Java, JS, Kotlin, Lisp, Lua, Nim, ObjC, OCaml, Octave, Pascal, Perl, PHP, Pike, Prolog, Python, Racket, Ruby, Rust, Scala, Scheme, Sed, Swift, TCL, Text, Turing, VB, Zig

Roger is ordering pizza for DMPG. He knows that there are P people who want to eat pepperoni pizza, C people who want to eat cheese pizza, and V people who want vegetarian pizza. If a single pizza feeds 3 people, how many pizzas will Roger have to order?

Constraints

0 \le P, C, V \le 1\,000\,000\,000

Input Specification

The first line will contain three space separated integers, P, C, and V.

Output Specification

A single integer, the total number of pizzas Roger has to order.

Sample Input

6 7 8

Sample Output

8

Explanation for Sample Output

Roger has to order 2 pepperoni pizzas, 3 cheese, and 3 vegetarian pizzas.


Comments


  • 1
    doodlering  commented on July 29, 2020, 10:06 p.m.

    In the best java8 submissions, it shows my solution as grey (aborted) and it should be green. Is this a bug?


    • -3
      Kirito  commented on July 30, 2020, 5:52 p.m. edited

      I've rejudged your solution to an AC. Do you recall manually aborting your submission, or did the judge do so without your intervention? In the latter case, it may be related to a technical hiccup we experienced around the time of your submission.


      • 1
        doodlering  commented on July 30, 2020, 6:34 p.m.

        Thank you. Yes, I manually aborted it.