>"I only got 50% of the test cases passed."
Does this mean that 50% produced an error, or that 50% produced the wrong result?
Just looking at it without actually testing it myself, I suspect the problem is in the divide by 2, (C/=2;) which would be a non-integer result about 50% of the time.
Perhaps a better way is to use bitwise operators. Use bitwise shift left (<<) and then test if it is greater than 2^(n-1). (where n=number of bits). Or optionally, after the shift do a logical AND (&) with a mask that has the highest bit set, then compare, etc.
I don't think much about many and much. I probably mess that up a lot.
It took me a long time to learn about "less" and "fewer", which is another similar countable/non-countable mistake. (Use "fewer" for countable objects.)
Since the pandemic started, the US healthcare industry has lost 684,286 customers.
The death rate in the US is now equivalent to a 9/11 attack happening everyday.
It'd be a short book. (In my judgement.)
I don't mind stupidity as long as a person is willing to learn.
By the way, that should be "there are", not "there's". The word "people" is plural so it requires the plural verb "are".
You wouldn't say, "There is people." That's incorrect. You say, "There are people." Even though you placed modifiers ("too many stupid") in between the verb and its noun.
In grammar, this is known as agreement, specifically number agreement.
This mathematical model says that respirators could have stopped COVID-19 in the US...
This study by researchers at Harvard Medical School and other institutions says that if just 40% of the population had worn N95 respirators at the beginning of the outbreak in the US, then the epidemic would never have become established.
https://royalsocietypublishing.org/doi/pdf/10.1098/rsos.210699
This is an elastomeric respirator. These respirators provide the best protection and fit (other than units that provide a separate air supply, like SCBA (self-contained breathing aparatus) or PAPR (powered air-purifying respirator)). Elastomeric respirators are designed for reuse and the filters are replaceable. The most effective filters for these respirators are rated N100 or P100 (or P3 in Europe). The respirators usually have an exhalation valve to make breathing easier. If source control is desired, then the exhalation valve should be covered with separate cloth or filter material. (Being careful not to excessively impede breathing.)
#COVID19 #masks #pandemic #vaccine #CDC #virus
(This pic is licensed under the Creative Commons Attribution 2.5 Generic license.
Attribution: Ryssby at English Wikipedia)
This is a respirator, also known as an N95 mask. These respirators have the filter built into the mask and are usually designed for limited use and disposal, although when supplies are short they can be reused as long as they still provide a good fit and are not clogged so as to make breathing difficult. They sometimes have an exhalation valve that allows exhaled air to escape directly without being filtered so as to make breathing easier. The unit in this picture also provides source control.
#COVID19 #masks #pandemic #vaccine #CDC #virus
Pic: Astronaut Kate Rubins wearing a respirator.
This is a surgical mask. It is designed to provide some level of source control, but is not designed to protect the wearer from airborne pathogens because it does not fit tightly to the face and allows some air to flow around the mask. The mask material is made of non-woven fabric, like melt-blown media, which can often filter smaller particles better than a simple cloth mask.
However, if you want to protect yourself from COVID-19, you must wear a respirator, like an N95 mask (or even better, N100).
Happy Constitution Day!
The American Revolution and the (imperfect) Constitution we created from it was an outlier among political revolutions in history. Although some among the founders were in it for a power grab, most were sincere and we won freedom.
Here's how revolutions typically play out...
Revolutionary leader says, "oppressed, blah, blah, blah, injustice, blah blah, blah, corrupt, blah, blah, incompetent, blah, blah...<insert list of contemporary grievances> ... Therefore, give me absolute power because only I can fit this..."
(Sometimes that last part is disguised as, "power to the people and I'll decide what the people want." )
#USA #Constitution #amendment #potus #congress #scotus
#PoliticalScience - because this is a science instance, right?
Then if you bury those plants underground and wait a few million years, you can pump out those hydrocarbons and burn them so there is more CO2 for the plants again. (sarcasm)
@freemo
That's exactly where I heard it!
I just heard today that plants are made mostly of air, and a little water. Most of the structure of plants are carbon from CO2, and hydrogen from the rain. Just a very small amount is minerals from the soil.
Because that's what they would look like if they were actual relief maps. (It's a map, not a sat image.)
Looks like someone poured ammonia or H2O2 into a dispenser of hand sanitizer or whatever, then screwed the top back on and shook it.
I'm just a geek.
Pronouns: She/Him/Her/His
(Use "she" for the subjective case, "him" for the objective case, "her" for the active possessive case, and "his" for the passive possessive case. Note: This is to avoid non-PC objectification and passivity.)
US, Eastern timezone
Privacy is important.
All of my opinions are someone else's.
- - -
If I favorite your toot, it doesn't mean that I feel your toot is my favorite toot. It means that I'm letting you know that I saw your toot, probably read it, and maybe even liked it (but not necessarily).
- - -
I have another account at:
https://mastodon.social/@PatPat/with_replies
And an additional backup account at:
https://mastodon.online/@Pat/with_replies
- - -
I block anyone who:
- uses racial, ageist, religious, ethnic, LGBT epithets
- uses the word "gay" derisively
- posts child porn
- posts any other racism, ageism or homophobia
- posts ambiguous cases of the above
- boosts or posts quotations of any of the above
(People who use the word "woke" in a derogatory manner are assumed to be pro-racist.)
-----------------------------
My profile header and avatar images are from wikipedia commons (commons.wikipedia.org) and listed as public domain. Images in my toots are fair use, public domain or from wikipedia commons unless otherwise noted. License: https://creativecommons.org/share-your-work/licensing-considerations/compatible-licenses