ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1014. Product of Digits

if n = 0 or n = 1 ?
Posted by Tanim 3 Apr 2018 05:47
what will the output if

input = 1 or 0 and why?
Re: if n = 0 or n = 1 ?
Posted by Sajib 11 Mar 2020 20:11
if n=0 then q=10
if n=1 then q=1
Re: if n = 0 or n = 1 ?
Posted by Roman 5 Apr 2020 17:22
You are right!
Re: if n = 0 or n = 1 ?
Posted by Andrei_Samuilik 19 May 2020 18:51
Should be 11 though, I don't know why authors decided on 1. The solution requires a product of digits. 1 by itself isn't a product at all.

Edited by author 19.05.2020 18:51