Wird da die Unabhängigkeit der Philippinos von den Philippinierinnen gefeiert? ![]()
Beiträge von p. specht
-
-
Beruigä diech biete! ich konte ja nich anen, dass du deutsch Profesorien biest!
"Frank, in Französisch kann ich dir bestenfalls VIER-MINUS geben!"
"GRACIAS!" -
Noch was Österreichisches für MeierKurt:
Welcher Wunsch enthält hintereinander alle bestimmten Artikel?
Spoiler anzeigen
DAS DIE DER TEUFEL HOL!

-
Ihr müsst halt Österreichisch lernen!

-
"Verzeihung Herr Direktor, aber ich habe dieses Monat meinen Gehalt noch nicht bekommen!"
- "Gut, ich verzeihe ihnen." -
RGH: Oops, da hab ich doch glatt Standardboard und dein Manchesterboard verwechselt!
Bei deiner Zahlenreihe gibt es ein Bildungsgesetz, beim Standardboard (dzt.) nicht.
SwR-23 ist damit auch gültig gelöst: DARTS -
Danke ... fürs Erste. Bisher scheint es kein Rezept zu geben, bei dem das Übel an der Wurzel gepackt wird. Es sei denn, man glaubt an "Antiviren-Software". Mir will nur nicht in den Schädel, welche Auftraggeber Geld für gestohlene Daten zahlen. Die müsste man mal exemplarisch an den Pranger stellen.
Die weitere Eskalation (Evolution?) dürfte dann nicht nur zu "Gegenviren" und "Impfviren", sondern auch zu "Bakterien" und höheren "Organismen" von Malware und ihrer Bekämpfung führen: Hurra, Krieg schafft Arbeitsplätze? -
Abt. SysInternals-Link
===============
zu einer neuen Verbreitungsmethode für die einzelnen Admin-
Systemtools und sonstige angebotene Programme: LINK
Von Microsoft wird allerdings dringend empfohlen, sich vorher auf
DIESER SEITE über die einzelnen Funktionen und Schalter der
angebotenen Programme zu informieren - sonst kann viel
Unsinn damit passieiren!
Gruss -
Bitteschön gibt es irgendwo im Netz eine systematische Übersicht, welche Formen von Malware eigentlich existieren? Ich stelle mir so eine Art "Chemische Elemente"-Tafel vor. Bisher keine Zusammenschau gefunden ausser Wiki, aber das erscheint mir eher dürftig.
Weiters würde mich eine Untersuchung darüber interessieren, WER eigentlich so viel Zeit hat, Malware zu schreiben und damit seinen Mitmenschen zu schaden? Welcher Täterkreis/Typus? Jugendliche aus Fadesse? Organisierte Banden? Gibt es Anstifter? -
Abt. SwR 23 - ´Unwichtig ungelöst´
===========================
Ein Manchester-Board enthält statt 12 Uhrziffern die folgenden Zahlen;
20 1 18 4 13 6 10 15 2 17 3 19 7 16 8 11 14 9 12 5 ... 20
Die 20 steht ganz oben. Frage:
Wozu dient das Ganze?
GrussP.S.: Niemand hat bisher das Bildungsgesetz dieser Zahlenreihe herausbekommen, auch die besten Mathmatiker nicht!
-
Hier das Link zum allgemeinen ROSETTA CODE AUFGABENVERZEICHNIS!
--------------- -
Abt. Schon etwas flotter: Primfilter mit Bereichssuche
==================================
Die übervorsichtigen Math-Routinen wurden zusammengelegt und bereinigt, was die Sache etwa fünfmal schneller macht. Das bringt ca. eine weitere Ziffer.
GrussP.S.: Jetzt könnte man dann auch XPSE drüberlaufen lassen.
Code
Alles anzeigenWindowtitle upper$("Primfilter: Mit Divisionsverfahren ins Clipboard") '(CL) 2018-06 by P.Specht, Wien; OHNE JEDE GEWÄHR! '2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,... '123456789059,123456789061,123456789083,... 98765432201,98765432257,... '999999999937,999999999959,999999999961,999999999989,1000000000039,... '9876543210997,9876543211001,9876543211019,... WindowStyle 24:CLS:font 2:declare n!,k!,pr! Print "\n Gibt nächsthöhere Primzahl/en ins Clipboard aus!" Print " Sinnvoll bis ca. 12..13 Stellen (Rechenzeit!)" k!=999999999937 '123456789059 '9876543210997 set("decimals",0) print "\n Ab ?: ";:input n! if n!=0:n!=k! else :k!=n! endif print " Suche läuft ...\n" clearclip repeat n!=k!:k!=k!+1 pr!=Primes(n!) if pr! print " ";n!;",";:putclip str$(n!)+"," if %pos>60:print:putclip "\n":endif case pr!>99999999999:sound 50,21 endif until 0 End Proc primes :parameters n! declare max!,prime!,i! if n!=2: prime!=2 elseif (n!<=1) or ((n!-2*round(n!/2,0))=0):prime!=0 else prime!=n! i!=3:max!=sqrt(n!) while i!<=max! if if(abs(i!)<(10^-35),n!,n!-i!*round((n!/i!),0))=0 prime!=0 Break endif i!=i!+2 endwhile endif return prime! endproc -
Abt. Gemütliche Primzahlen-Bereichssuche
===========================
Die Math-Routinen wären noch etwas beschleunigbar.
GrussCode
Alles anzeigenWindowtitle upper$("Primgenerator: Mit Divisionsverfahren ins Clipboard") '(CL) 2018-06 by P.Specht, Wien; OHNE JEDE GEWÄHR! '2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,... '123456789059,123456789061,123456789083,... 99990000119,... WindowStyle 24:CLS:font 2:declare n!,k!,pr! Print "\n Gibt nächsthöhere Primzahl/en ins Clipboard!" Print " Sinnvoll bis ca. 12 Stellen (Rechenzeit)!" k!=99999999999 set("decimals",0) print "\n Ab ?: ";:input n! if n!=0:n!=k! else :k!=n! endif print " Suche läuft ...\n" clearclip repeat n!=k!:k!=k!+1 pr!=Primes(n!) if pr! print n!;",";:putclip str$(n!)+"," if %pos>60:print:putclip "\n":endif endif until 0 End Proc primes :parameters n! declare max!,prime!,i! if n!=2: prime!=2 elseif (n!<=1) or (remodf(n!,2)=0): prime!=0 else prime!=n! i!=3:max!=sqrt(n!) while i!<=max! if remodf(n!,i!)=0 prime!=0 Break endif i!=i!+2 endwhile endif return prime! endproc proc floor :parameters x! case abs(x!)<(10^-35):return 0 case x!>0:return intf(x!) return (abs(x!-intf(x!)) < 10^-35)-intf(abs(x!-1)) endproc proc remodf :parameters x!,y! case abs(x!)<(10^-35):return 0 case abs(y!)<(10^-35):return x! return ((x!>0)-(x!<0))*abs(x!-y!*floor(x!/y!)) endproc proc frac :parameters x! var s!=(x!>0)-(x!<0) x!=abs(x!) x!=x!-round(x!,0) case x!<0:x!=1+x! return s!*x! endproc proc intf :parameters x! var s!=(x!>0)-(x!<0) x!=abs(x!) x!=x!-frac(x!) return s!*x! endproc -
Abt. Primzahlenprüfung mittels Divisionsverfahren
===============================
Langsam, aber sicher.
GrussCode
Alles anzeigenWindowtitle "Primeigenschaftsprüfung: Langsames Divisionsverfahren" WindowStyle 24:CLS:font 1 declare n!,k!,pr! k!=2^53-1 k!=90000103 set("decimals",0) repeat print "\n ?: "; input n! if n!=0:n!=k!:k!=k!-1:endif locate %csrlin-1,25 pr!=Primes(n!) casenot pr!:print n!, print format$(" #0 ist prim!;Negativ??;Nicht prim!",pr!) waitinput 42 until %key=27 print "\n ---":beep Waitinput End Proc primes :parameters n! declare max!,prime!,i! if n!=2: prime!=2 elseif (n!<=1) or (remodf(n!,2)=0): prime!=0 else prime!=n! i!=3:max!=sqrt(n!) while i!<=max! if remodf(n!,i!)=0 prime!=0 Break endif i!=i!+2 endwhile endif return prime! endproc proc floor :parameters x! case abs(x!)<(10^-35):return 0 case x!>0:return intf(x!) return (abs(x!-intf(x!)) < 10^-35)-intf(abs(x!-1)) endproc proc remodf :parameters x!,y! case abs(x!)<(10^-35):return 0 case abs(y!)<(10^-35):return x! return ((x!>0)-(x!<0))*abs(x!-y!*floor(x!/y!)) endproc proc frac :parameters x! var s!=(x!>0)-(x!<0) x!=abs(x!) x!=x!-round(x!,0) case x!<0:x!=1+x! return s!*x! endproc proc intf :parameters x! var s!=(x!>0)-(x!<0) x!=abs(x!) x!=x!-frac(x!) return s!*x! endproc -
Abt. SwR 22 die X-te: Wie die Zeit vergeht!
=========================== Beitrag #194 hiermit zurückgezogen!
Die Zeit vergeht bei mir vor allem mit Bugs suchen... Also: Neuerlicher Versuch, diesmal mit den richtigen Personenindizes (Zitter).
GrussCode
Alles anzeigenWindowTitle "Dinesman´s problem (von Rosettacode.org) Version 5.4.21 LOL" ' http://rosettacode.org/wiki/Dinesman%27s_multiple-dwelling_problem ' ' The problem: ' Baker, Cooper, Fletcher, Miller, and Smith live on different floors of an ' apartment house that contains only five floors. ' ' Baker does not live on the top floor. ' Cooper does not live on the bottom floor. ' Fletcher does not live on either the top or the bottom floor. ' Miller lives on a higher floor than does Cooper. ' Smith does not live on a floor adjacent to Fletcher's. ' Fletcher does not live on a floor adjacent to Cooper's. ' 'Where does everyone live? CLS font 1 declare W$[4]:w$[]=substr$("EG,1.Stock,2.Stock,3.Stock,4.Stock",&index+1,",") declare P$[4]:p$[]=substr$("Baker,Cooper,Fletcher,Miller,Smith",&index+1,",") declare p&,q&,r&,s&,t& ' Baker does not live on the top floor. whileloop 0,3:p&=&Loop 'Person 0 Baker wohnt in Ebene p& ' Cooper does not live on the bottom floor. whileloop 1,4:q&=&Loop:case q&=p&:continue 'Person 1 wohnt in Ebene q& ' Fletcher does not live on either the top or the bottom floor. whileloop 1,3:r&=&Loop:case (r&=q&) or (r&=p&):continue 'Person 2 wohnt in Ebene r& ' Fletcher does not live on a floor adjacent to Cooper's. case r&=q&+1 : continue case r&=q&-1 : continue ' Miller lives on a higher floor than does Cooper. whileloop q&,4:s&=&Loop:case (s&=q&) or (s&=r&) or (s&=p&):continue 'Person 3 wohnt in Ebene s& whileloop 0,4:t&=&Loop:case (t&=s&) or (t&=q&) or (t&=r&) or (t&=p&):continue 'Person 4 in t& ' Smith does not live on a floor adjacent to Fletcher's. case t&=r&+1 : continue case t&=r&-1 : continue print "\n ";P$[0],"lebt im",W$[p&] print "\n ";P$[1],"lebt im",W$[q&] print "\n ";P$[2],"lebt im",W$[r&] print "\n ";P$[3],"lebt im",W$[s&] print "\n ";P$[4],"lebt im",W$[t&] endwhile endwhile endwhile endwhile endwhile waitinput -
Michael: Hab dein Prog zum Checken wieder nach XProf-11 gedreht: Du hast natürlich recht!
Allerdings ist mir noch nicht klar, was bei meinem Prog schiefgeht, denn ich habe die Bedingung "nicht nahe" an sich drinnen... GRÜBELP.S.: Danke für den Battle !!!
EDIT: Habs gefunden: Computerlogik wieder mal: Für den Compi heisst ´Fletcher darf nicht in Nähe von Cooper leben´ noch nicht, dass Cooper nicht in der Nähe von Fletcher wohnen darf. GRRRRR!
Code
Alles anzeigen' brute force XProfan-11 cls:font 2 declare personen$[5], i1%,i2%,i3%,i4%,i5% declare test$ personen$[1] = "Baker" // nicht 4 personen$[2] = "Cooper" // nicht 0 personen$[3] = "Fletcher" // nicht 0,4, nicht nahe p2 personen$[4] = "Miller" // über p2 personen$[5] = "Smith" // nicht nahe p3 whileloop 1,5:i1%=&Loop case (i1%=2) : continue // Cooper nicht im 0. Stock case (i1%=3) : continue // Fletcher nicht im 0. Stock whileloop 1,5:i2%=&Loop case i2%=i1% : continue case ((i2%=3) and (i1%=5)) or ((i2%=5) and (i1%=3)) : continue // Smith/Fletcher case ((i2%=3) and (i1%=2)) or ((i2%=2) and (i1%=3)) : continue // Cooper/Fletcher whileloop 1,5:i3%=&Loop case (i3%=i1%) or (i3%=i2%) : continue case ((i3%=3) and (i2%=5)) or ((i3%=5) and (i2%=3)) : continue // Smith/Fletcher case ((i3%=3) and (i2%=2)) or ((i3%=2) and (i2%=3)) : continue // Cooper/Fletcher whileloop 1,5:i4%=&Loop case (i4%=i1%) or (i4%=i2%) or (i4%=i3%) : continue case ((i4%=3) and (i3%=5)) or ((i4%=5) and (i3%=3)) : continue // Smith/Fletcher case ((i4%=3) and (i3%=2)) or ((i4%=2) and (i3%=3)) : continue // Cooper/Fletcher whileloop 1,5:i5%=&Loop case (i5%=i1%) or (i5% = i2%) or (i5%=i3%) or (i5%=i4%) : continue case (i5%=1) : continue // Baker nicht im 4. Stock case (i5%=3) : continue // Fletcher nicht im 4. Stock case ((i5%=3) and (i4%=5)) or ((i5%=5) and (i4%=3)) : continue // Smith/Fletcher case ((i5%=3) and (i4%=2)) or ((i5%=2) and (i4%=3)) : continue // Cooper/Fletcher test$ = "E: " + personen$[i1%] + ", 1: " + personen$[i2%] + ", 2: " + personen$[i3%] + ", 3: " + personen$[i4%] + ", 4: " + personen$[i5%] IfNot InStr(personen$[4],test$) > InStr(personen$[2],test$) // erwischt: Miller unter Cooper Continue EndIf Print "\n";test$ endwhile endwhile endwhile endwhile endwhile waitkey end '/* 'Baker lebt nicht im obersten Stock, 'Cooper nicht im Erdgeschoss, 'Fletcher weder ganz oben noch ganz unten. ' 'Miller wohnt irgendwo über Cooper. ' 'Smith wohnt nicht in der Nähe von Fletcher, 'Fletcher nicht in der Nähe von Cooper. ' 'Frage: In welchem Stockwerk leben die Leute jeweils? ' '' The problem: '' Baker, Cooper, Fletcher, Miller, and Smith live on different floors of an '' apartment house that contains only five floors. '' '' ''Where does everyone live? '*/ -
Stimmt, ich habe uneleganter Weise nicht nach Stockwerken geordnet.
"Miller wohnt irgendwo über Cooper." engt dann noch etwas ein. -
Lösung zu SwR 22 Dinesmans Problem
------------------------------------Spoiler anzeigen
WindowTitle "Dinesman´s problem (von Rosettacode.org)"' http://rosettacode.org/wiki/Dinesman%…welling_problem'' The problem:' Baker, Cooper, Fletcher, Miller, and Smith live on different floors of an' apartment house that contains only five floors.'' Baker does not live on the top floor.' Cooper does not live on the bottom floor.' Fletcher does not live on either the top or the bottom floor.' Miller lives on a higher floor than does Cooper.' Smith does not live on a floor adjacent to Fletcher's.' Fletcher does not live on a floor adjacent to Cooper's.''Where does everyone live?CLS:font 1SETUP_SECTION:declare name$[4],b&,c&,f&,m&,s&name$[]=substr$("Baker, Cooper, Fletcher, Miller, Smith",&index+1,", ")'live on different floors of an apartment house that contains only five floors 0..4'Where does everyone live?PROBLEM_SECTION:' Baker does not live on the top floor:' _not 4Whileloop 0,3:b&=&Loop' Cooper does not live on the bottom floor:' not 0_Whileloop 1,4:c&=&Loop:case c&=b&:continue 'on different floors' Fletcher does not live on either the top or the bottom floor, and ...' Fletcher does not live on a floor adjacent to Cooper's.' adjacent: __+1 __-1Whileloop 1,3:f&=&Loop:case (f&=b&) or (f&=c&) or (f&=(c&+1)) or (f&=(c&-1)):continue' Miller lives on a higher floor than does Cooper:Whileloop 0,4:m&=&Loop:case (m&=f&) or (m&=b&) or (m&<=c&):continue' Smith does not live on a floor adjacent to Fletcher's:Whileloop 0,4:s&=&Loop:case (s&=m&) or (s&=f&) or (s&=(f&+1)) or (s&=(f&-1)) or (s&=b&) or (s&=c&):continueOUTPUT_SECTION:print "\n ";b&;". Stock:",name$[b&]print "\n ";c&;". Stock:",name$[c&]print "\n ";f&;". Stock:",name$[f&]print "\n ";m&;". Stock:",name$[m&]print "\n ";s&;". Stock:",name$[s&]print "\n -------------------------------"EndwhileEndwhileEndwhileEndwhileEndwhileprint "\n Keine weiteren Moeglichkeiten gefunden!"beep:waitinputendEdit Volkmar: Programm im Spoiler wurde durch den Autor zurückgezogen
-
Alles Gute!
-
Abt. SwR 22 - Rosetta Code Aufgabe "Dineman´s Problem"
=====================================
Die Herren Baker, Cooper, Fletcher, Miller und Smith wohnen in unterschiedlichen Stockwerken eines Apartmenthauses mit 5 Ebenen: 0: Erdgeschoss und 1.-4. Stock. Wir wissen folgendes:
Baker lebt nicht im obersten Stock, Cooper nicht im Erdgeschoss, Fletcher weder ganz oben noch ganz unten. Miller wohnt irgendwo über Cooper. Smith wohnt nicht in der Nähe von Fletcher, Fletcher nicht in der Nähe von Cooper. Frage: In welchem Stockwerk leben die Leute jeweils?