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

Tanim if n = 0 or n = 1 ? [3] // Problem 1014. Product of Digits 3 Apr 2018 05:47
what will the output if

input = 1 or 0 and why?
Sajib Re: if n = 0 or n = 1 ? [2] // Problem 1014. Product of Digits 11 Mar 2020 20:11
if n=0 then q=10
if n=1 then q=1
Roman Re: if n = 0 or n = 1 ? // Problem 1014. Product of Digits 5 Apr 2020 17:22
You are right!
Andrei_Samuilik Re: if n = 0 or n = 1 ? // Problem 1014. Product of Digits 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