treffen:codegolfing:005

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
Letzte Überarbeitung Beide Seiten, nächste Überarbeitung
treffen:codegolfing:005 [2020/11/28 15:18]
max
treffen:codegolfing:005 [2021/08/25 08:15]
max
Zeile 1: Zeile 1:
-[[treffen:codegolfing|CodeGolfings]]+{{:treffen:problemsolving:rummy.jpg?400|}}
  
-====== 005 Code Golfing Colorized rummy ======+[[https://creativecommons.org/licenses/by-sa/3.0/|CC BY-SA 3.0]] by [[https://en.wikipedia.org/wiki/Rummy#/media/File:A_Game_of_Rummy.JPG|David Lazich]]
  
-| Submission due | Sat. Nov 28th 2020 at 3pm| + 
-| Event | Sat. Nov 28th 2020 at 4pm | + 
-| Details| {{ :treffen:005_codegolfing_v0.2.pdf |005 CodeGolfing v0.2 [PDF]}} |    +====== 005: Colorized Rummy ====== 
-| Venue| [[https://meet.jit.si/005CodeGolfing|https://meet.jit.si/005CodeGolfing]] PW: ''v0x201''+ 
-| Contact| max at vspace.one |+| Series | [[treffen:codegolfing|CodeGolfings]] |  
 +| Submission due  | Sat. Nov 28th 2020 at 3pm| 
 +| Event  | Sat. Nov 28th 2020 at 4pm | 
 +| Details | {{ :treffen:005_codegolfing_v0.2.pdf |005 CodeGolfing v0.2 [PDF]}} |    
 +| Venue | [[https://meet.jit.si/005CodeGolfing|https://meet.jit.si/005CodeGolfing]] PW: ''v0x201''
 +| Contact | max at vspace.one 
 +| Difficulty | {{:treffen:problemsolving:progress2.png?nolink&160 |}} 
  
  
Zeile 21: Zeile 27:
  { "in": "rrkkyyb", "out": 0},  { "in": "rrkkyyb", "out": 0},
  { "in": "rrkkyybb", "out": 0},  { "in": "rrkkyybb", "out": 0},
- { "in": "rrkkyy", "out": 0}+ { "in": "rrkkyy", "out": 0}, 
 + { "in": "k", "out": 1}, 
 + { "in": "kb", "out": 1}, 
 + { "in": "kkbb", "out": 1}
 ] ]
 </code> </code>
Zeile 27: Zeile 36:
 ===== Solutions ===== ===== Solutions =====
  
-==== Ruby ==== +==== Ruby (>=2.7) ==== 
-69B max | +69Bmax 
 + 
 +Beschreibung: {{ :treffen:20210325_005_codegolfing_v2.pdf |005 Code Golfing Solution [pdf]}}
  
 <code> <code>
Zeile 36: Zeile 47:
  
 ==== Python ==== ==== Python ====
-83B chris +83Bchris
  
 <code> <code>
Zeile 45: Zeile 56:
  
 ==== Python ==== ==== Python ====
-85B max +85Bmax
  
 <code> <code>
Zeile 54: Zeile 65:
  
 ==== Perl ==== ==== Perl ====
-86B max +86Bmax
  
 <code> <code>
Zeile 62: Zeile 73:
  
 ==== Python ==== ==== Python ====
-172B m0rix +172Bm0rix
  
 <code> <code>
Zeile 74: Zeile 85:
  
 ==== Python ==== ==== Python ====
-226B nikax +226Bnikax
  
 <code> <code>
Zeile 96: Zeile 107:
  
 ==== PHP ==== ==== PHP ====
-105B marc +105Bmarc
  
 <code> <code>
Zeile 103: Zeile 114:
  
 ==== Java ==== ==== Java ====
-1.7KB alexander +1.7KBalexander
  
 <code> <code>
Zeile 164: Zeile 175:
 </code> </code>
  
 +===== Außer Konkurrenz =====
 +==== PHP ====
 +78B, chris,max
 +
 +<code>
 +import sys
 +a,b,c,d=sorted(sys.argv[1].count(x) for x in"rybk")
 +1/(a>=2*d-b-c)
 +</code>
  
  
  • treffen/codegolfing/005.txt
  • Zuletzt geändert: 2022/07/01 18:56
  • von marc_weber