+ 30

Quizz time III 100

This one about digits. we have nine digit : 1,2,3,4,5,6,7,8,9 arrange them to become addition of integer and fraction that always result 100. ex: 3 + (69258/714) = 100 82 + (3546/197) = 100 there are more like the example. Can you find the rest (more than eight i guess) ? You are free to use any tool.

6th Apr 2017, 3:20 PM
Agus Mei
Agus Mei - avatar
21 odpowiedzi
+ 19
Used Java. Here are all the possibilities. 3 + 69258 / 714 81 + 5643 / 297 81 + 7524 / 396 82 + 3546 / 197 91 + 5742 / 638 91 + 5823 / 647 91 + 7524 / 836 94 + 1578 / 263 96 + 1428 / 357 96 + 1752 / 438 96 + 2148 / 537 Thank you @Agus. Great Puzzle!
6th Apr 2017, 5:51 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 20
@Agus Mei wait, erm... couple hours and I`ll give you all of them...
6th Apr 2017, 4:55 PM
Illusive Man
Illusive Man - avatar
+ 19
Tried to make count not only for / but for +, - and *. But stopped on variant with / only. https://code.sololearn.com/caC6CktZYT9T/?ref=app +Writes all answers to txt file.
7th Apr 2017, 8:42 PM
Illusive Man
Illusive Man - avatar
+ 14
@Sweet Emotion You are really fast, but i make this time a little bit hard. 😁 it should always be x+(y/z).
6th Apr 2017, 3:49 PM
Agus Mei
Agus Mei - avatar
+ 12
@Sweet Emotion it took me a month to found 5 and 2 more week to found the other 3 i believe there is one more that i miss. so totally there are 10 or 11 arrengement. hint: there are 2 digit integer in the front like this: 94 + (1578/263) = 100
6th Apr 2017, 4:44 PM
Agus Mei
Agus Mei - avatar
+ 11
@Nicolay Sir 1. it should always be (x+y/z) 2. it is division i am happy to have you here.😄😄😄
6th Apr 2017, 3:47 PM
Agus Mei
Agus Mei - avatar
+ 10
Got 4 1+2+3+5+4*6-7+8*9 = 100 (2+5+7+3*6-4+8*9)/1 =100 1+2+3-4+5+6+78+9 =100 (-2-3-4-5+6*7+8*9)/1=100 Edit: Oh wait. I spent 30 mins getting the wrong solutions? Damnit >_<
6th Apr 2017, 3:33 PM
Pixie
Pixie - avatar
+ 10
@Illusive Man nice to have you here.
6th Apr 2017, 5:00 PM
Agus Mei
Agus Mei - avatar
+ 10
@Krishna Sir you are great !
6th Apr 2017, 11:10 PM
Agus Mei
Agus Mei - avatar
+ 9
questions: 1. should it always be ( x + y / z ) or could be ( a / b + d / c ) or ( a + b + c / d ) ? 2. is / floor division or division ?
6th Apr 2017, 3:29 PM
Nikolay Nachev
Nikolay Nachev - avatar
+ 9
@Sweet Emotion Take your time.
6th Apr 2017, 3:54 PM
Agus Mei
Agus Mei - avatar
+ 8
@Agus. I'll try again after dinner haha :)
6th Apr 2017, 3:51 PM
Pixie
Pixie - avatar
+ 8
Woah man. The permutations are endless on this one. This one is not exactly x+(y/z) but it's the closest I could manage : [-2+4*3+5]+[6+7+8*9]/[1]
6th Apr 2017, 4:33 PM
Pixie
Pixie - avatar
+ 7
@Agus Thanks for the hint. I'll try writing up a code for it.
6th Apr 2017, 4:56 PM
Pixie
Pixie - avatar
+ 7
i'm on it too! 😎
6th Apr 2017, 5:34 PM
Tusiime Innocent Boub
Tusiime Innocent Boub - avatar
+ 7
I have done it. Will post as soon as I get it onto mobile. Cheers. All answers have a slight tolerance of being from 99 to 101unfortunately because of int datatype. A few examples are: 93 6215 784 78 6513 294 87 6923 514
6th Apr 2017, 5:47 PM
Pixie
Pixie - avatar
+ 7
@krishna Could you post your code here please. I've been trying in C++ for some time. Got an answer that isnt perfect. Would love to see how you did it
6th Apr 2017, 5:53 PM
Pixie
Pixie - avatar
+ 7
This isnt perfect. It's close. I'll work on it. Anyway, for now, here it is https://code.sololearn.com/ckTJIrzUFt5C/?ref=app
6th Apr 2017, 6:04 PM
Pixie
Pixie - avatar
+ 7
Here is the code. It won't completely run in code playground though. https://code.sololearn.com/c10BAhXfFGbP/?ref=app
6th Apr 2017, 6:14 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 7
Thanks. I would appreciate it a lot if you could look into where I went wrong. I was trying to replace int x with double x and 100 with 100.000 but it just gives me the same result. I cant seem to find the reason I'm not getting it. Maybe it's trivial but I'm certainly gonna lose sleep over it lol.
6th Apr 2017, 6:19 PM
Pixie
Pixie - avatar