All submissions for this problem are available.
Use approach wisely. Chef wants to calculate the number of people come in the restaurant and when the total number of people exceeds 50 then chef closes the bakery because the total number of cakes in the bakery is 50. Chef is busy somewhere else so she wants help. Can you help chef to calculate ?
Input: Input integer in single line and when new people come enter total number.
output: when 50 come in bakery print "Close".
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, rust, SCALA, swift, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, SQL, kotlin, PERL6, TEXT, SCM chicken, PYP3, CLOJ, R, COB, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.