m**********e 发帖数: 2808 | 1 Alas, when I finally get a seat on a train (a small probability event itself
in the badly horribly terribly nightmarishly infernally crowded London!),
there is a probability about three quarters that someone with a paunch
stands before me.
If (that looks like, almost surely, a man) {
remain seated;
/* it is almost surely he/she/it is not pregnant (though I enjoy "Junior" a
lot, I have to admit that the movie has a poor calibration of reality--
reality as dated in AD 2007). */}
If (that looks like, almost surely, a woman && with paunch obviously big) {
give up the seat to he/she/it;
/* He/she/it is likely to be a pregnant woman. Treat others as you want to
be treated in the same circustance */}
If (that looks like, almost surely, a woman && with a small paunch) {
/* torturous loop officially begins. */
generate random binary number X;
while (both of you remain on the train) {
if (X==0 && you are not tired of guessing yet ) {
try to remained seated;
think of the consequence that if that's a real baby;
generate random binary number X;}
else if (X==1 && you are not tired of guessing yet) {
try to give up the seat to him/her/it;
think of the consequence that if that's not a real baby; /* you are implying
that he/she/it is fattttttttttttttt!!!! */
generate random binary number X;}
else {
if (X==0) {remain seated;}
if (X==1) {give up the seat;}
break;}}} | d**e 发帖数: 6098 | 2 .....
itself
a
【在 m**********e 的大作中提到】 : Alas, when I finally get a seat on a train (a small probability event itself : in the badly horribly terribly nightmarishly infernally crowded London!), : there is a probability about three quarters that someone with a paunch : stands before me. : If (that looks like, almost surely, a man) { : remain seated; : /* it is almost surely he/she/it is not pregnant (though I enjoy "Junior" a : lot, I have to admit that the movie has a poor calibration of reality-- : reality as dated in AD 2007). */} : If (that looks like, almost surely, a woman && with paunch obviously big) {
|
|