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 people who want to eat pepperoni pizza,
people who want to eat cheese pizza, and
people who want vegetarian pizza. If a single pizza feeds
people, how many pizzas will Roger have to order?
Constraints
Input Specification
The first line will contain three space separated integers, ,
, and
.
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
In the best java8 submissions, it shows my solution as grey (aborted) and it should be green. Is this a bug?
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.
Thank you. Yes, I manually aborted it.