|
Four fours! (not arbitrarily many)
|
|
|
|
|
It works for four fours. But this is "Code Project" and writing a routine to do just that one example is no fun.
|
|
|
|
|
The output, after repairing a small bug - condition in 2nd loop is i != modulus || j > 0:
1=(5/5)
2=(5/5)+(5/5)
3=(5/5)+(5/5)+(5/5)
4=(5/5)+(5/5)+(5/5)+(5/5)
5=5
6=5+(5/5) etc.
None of these lines has five fives, so this does not solve the problem. Running it with modulus 4, one gets:
1=(4/4)
2=(4/4)+(4/4)
3=(4/4)+(4/4)+(4/4)
4=4
5=4+(4/4) etc
Here, only the solution for 2 has four fours, all others are not solutions (two fours, six fours, one four, three fours, ...). So how does this "work for four fours"?
|
|
|
|
|
I didn't program the entire solution...left that for others to do.
One could make the necessary change to solve the X/Y problem of trying to get 5 5's or 3 5's or such an arbitrary combination.
I was just demonstrating the "let's use 4's" to solve the values.
That's why I said there needed to be more work to do the special cases of "only 4" or "only X" values.
You eight need to increase or decrease the # of terms so is a bit more challenging.
|
|
|
|
|
Ok - fine In other words, what you did does not take any useful step in any sensible direction for solving the problem
For this, one would need to create all possible expression trees fulfilling the stated properties (e.g., exactly four leaves with constant 4, only the given operator node types) and collecting the trees and their expression results. A suitable pruning condition could prevent creation of trees definitely not yielding results in {1...100} (although I don't see what a simple pruning condition would look like; maybe two stacked exponentations can always be excluded* or thereabouts).
* Not true: 4^(4^(4-4)) is a valid solution for value 4, and (4^4)^(4-4) is a valid solution for value 1.
|
|
|
|
|
|
|
Try this one, it looks the same as the original but points to ZDnet not the lounge itself.
Windows 10: Now you can selectively block USB devices from connecting to your PCs | ZDNet
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
|
|
|
|
|
Saw this earlier, the link did work then. I am very interested in getting embedded programming systems working (also being the Dinosaur, I know ISA ports!) it seems there is talk of a method of white listing devices which could make my life easier BUT Admin Rights!
|
|
|
|
|
I suspect that will make the secure computer admins at my last job happy. Rogue USB drives were a major concern; and being able to easily disable them directly should be a major win. I'm not sure if they had some sort of kludged setup to try and stop them, or just made do with putting a "User XXX was very naughty" entry in the logs (reviewed weekly) to deal with it after the fact.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
|
|
|
|
|
They rolled it out where I work. I think they used a group policy to exempt devices that needed USB access for their daily work.
I think they were mostly worried about office workers taking company data.
|
|
|
|
|
Yes. Where I work, you can't write to USB devices by default - you need to get special dispensation.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Aim to sabotage mini boat (8)
|
|
|
|
|
Aim
to sabotage (anag)
mini boat MINIBOAT
AMBITION
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
|
Sometimes the easy ones take forever ... and the hard ones get done straight away!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
The next non-AMBI one will scratch a lot of heads.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Bit like roofing
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
|
|
|
|
|
I installed 11 last weekend. From the outset Edge was unstable. It will at random cause the screen to flash partly off, then the screen went completely black for 5 or so seconds before it flickered back to life.
Then today - with Win 11 barely a week old - there was a massive update from Microsoft. I had hopes MS had fixed the Edge issue, but I should have known better.
I have a Macrium image of my last Win 10 install. I am sorely tempted to spend 5 minutes and go back to ten.
Get me coffee and no one gets hurt!
|
|
|
|
|
Thanks for walking through the fire for us!
You will be remembered!
|
|
|
|
|
I was going to install it, then I remembered that there are thousands of people who are willing to risk breaking their machines first so that I didn't have to
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
same here, my plan is a W11 laptop sometime in the next ~4-8 months that I can use as a secondary system to figure it out, and then W11 on my new desktop in a year or two when I build it.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
|
|
|
|
|
Sounds like your display driver microsoft has supplied may not be ready for your device.
I would look on the display adapter type manufacture's web site for a win 11 driver.
|
|
|
|
|
|
Rolling back using a Macrium image is much quicker and can be done at any time. It typically takes 5 minutes or so.
Get me coffee and no one gets hurt!
|
|
|
|