14
2
You will be given 3 integers as input. The inputs may or may not be different from each other. You have to output 1 if all three inputs are different from each other, and 0 if any input is repeated more than once.
This is code-golf, so make your code as short as possible!
1Welcome to PPCG. Nice first challenge. We are quite strict about objective winning criteria on this site. [tag:code-golf] seems to be the obvious choice here, so I will add that to your post. Correct me if I'm wrong. – Adám – 2018-09-03T10:11:40.380
1Some test cases would be nice. – Adám – 2018-09-03T10:17:08.097
19Whoever is downvoting all answers should at least explain why... – Arnauld – 2018-09-03T10:41:42.660
1@Adám I think a more accurate title would be Are all three integers distinct? – Arnauld – 2018-09-03T10:45:56.040
1@Arnauld Yes, you're right. Fixed. – Adám – 2018-09-03T10:53:48.960
5
My dupe-vote is a hammer, but Possible duplicate of "Determine if all decimal digits are unique" Slightly different, but most answers can still be ported.
– Kevin Cruijssen – 2018-09-03T11:02:13.460@Adám According to the meta consensus, we should tell the OP to add the winning criteria themself. – user202729 – 2018-09-05T13:02:35.433
1its not a duplicate, the small amount of input yields to different solutions. id wager if you asked this to electrical engineers youd get a whole different approach to the answer (primarily due to the small number of inputs).. i realize the golfing languages all have de-dup but there is still something to be said for the 'normal' languages and what people's backgrounds are. – don bright – 2019-01-01T00:32:18.920