Brain-Flak İçin Sürpriz Parti


42

Bu soru Brain-Flak'ın ilk Doğum Günü'nü kutlamak için tasarlanan bir dizi Brain-Flak Doğum Günü yarışmasının bir parçası. Brain-Flak'ın Doğum Günü ile ilgili daha fazla bilgiyi burada bulabilirsiniz .

Bugün Brain-Flak'ın İlk Doğum Günü! Bu yüzden sürpriz bir doğum günü partisi yapacağımızı düşündüm. Yani en sevdiğin dilde bas

Surprise!
Happy Birthday, Brain-Flak!

(İzleyen boşluk boşluğuna izin verilir)

Her zaman olduğu gibi programlar golf oynamalıdır. Ancak Brain-Flak programları parantezden yapıldığı için, kaynağınızdaki parantezleri size karşı sayılmaz. (Karakterler ()[]<>{}bayt toplamınıza göre sayılmaz), ancak Brain-Flak'ı üzmeyecek şekilde dengelenmelidir.

kurallar

İşte kuralların bir dökümü

  • Kaynağınızdaki parantezlerin dengeli olması gerekir. Programınızın parantezleri aşağıdaki dilbilgisi tarafından dağıtılmalıdır:

    S -> SS | (S) | [S] | <S> | {S} | E

    Eboş dize nerede .

    Diğer bir deyişle, dengeli bir dize, iki dengeli dizenin birleştirilmesi, dengeli bir dize etrafındaki parantezler veya boş dizedir.

  • Bir programın puanı parantez olmayan bayt sayısıdır.

  • Amacınız, seçtiğiniz dilde puanınızı en aza indirmektir.

  • Standart kurallar uygulanır, böylece tam bir program veya bir işlev yazabilirsiniz.

  • bir bağlanma durumunda, ham bayt sayısı bir bağ kırıcı olarak işlev görür

Kesinlikle belli dilde (sıfır bayt çözümleri var gibi olacak Parantez Hell , parantez , Glypho , yüksek oranlarda konuşma ). Bunun önemsiz bir iş olmadığı dillerde iyi golf oynamanın yollarını bulmaya çalışın.


8
Sürpriz! Doğum günün kutlu olsun, Beyin Flak!
Yoldaş SparklePony

Tam bir program mı olmalı yoksa dizgeyi döndüren bir işlev olabilir mi?
LegionMammal978

"Bütün parantezler dengeli olmalı" deyinceye kadar "dilbilgisi" konusunu anlamadım (bu standart bir nottur?).
Jonathan Allan,

1
Aptal sorular için özür dilerim. ><Dengeli olarak değerlendiriliyor mu yoksa diş tellerinin doğru sırada mı olması gerekiyor ( <>)?
Carcigenicate

2
CFG için +1. "Dengeli" tanımlamanın harika bir yolu.
Brian McCutchon

Yanıtlar:


22

Python 2 , 39 37 36 34 bayt

-1 dzaima sayesinde

-2, Outgolfer Erik'e teşekkürler

exec("".join([chr(len(x))for(x)in'()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()({}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()({}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()({}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()({}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()({}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()({}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()({}()()()()()()()()()()()()()()()()({}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()({}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()({}()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()){}()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()){}()()()()()()()()()()()()()()()()){}()()()()()()()()()()()()()()()()()()())'.split("{}")]))

Çevrimiçi deneyin!

İlgili karakterler:

exec"".joinchrlenxforxin''.split""

açıklama

Bu program dizeyi oluşturur:

print"Surprise!\nHappy Birthday, Brain-Flak!"

Bunu, uzun bir parantez dizesini karakter kodlarına dönüştürerek yapar. Dize inşa edildikten sonra onu çalıştırır.

Dizeyi iskelet ile oluşturur:

"".join([chr(len(x))for(x)in'<...>'.split("{}")]))

Bu, dizeyi ikiye böler {}ve her bölümü, uzunluğuna karşılık gelen karakter koduna eşler. Daha sonra sıfır baytlık bir maliyetle tüm dizeyi parelerin dışında oluşturabiliriz.


1
Bunun yerine boşluk, koyun ()etrafında x2. kaydetmek için
Erik Outgolfer

20

Haskell (GHC 8.4'ten önce), ( 10119 7767 7626 7540 bytes), skor 15 14 10

(<>)(<><>)(<>)(<<>>)()=(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>)))))))))))))))))))))))))))))))))))))))<<>>(((<>)((<>)((<>)((<>)(<><>)))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>)))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)(<><>)))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>)))))))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))))))))))))))))))))))))))))))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>)))))))))))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))))<<>>((<><>)<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))))))))))))))))))))))))))))))))))))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>)))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))<<>>(((<>)((<>)((<>)((<>)((<>)(<><>))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>)))))))))))))))))))))))))<<>>((<><>)<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))))))))))))))))))))))))))))))))))))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>)))))))))))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>)))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))))))))))))))))))))))))))))))))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>)))))))))))))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>)))))))))))))))<<>>(((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)((<>)(<><>)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))<<>>[])))))))))))))))))))))))))))))))))))))
(<>)'y'pred(:)

Çevrimiçi deneyin!

Son satır anonim bir işlevi tanımlar (<>)'y'pred(:). Dizeyi (<>)'y'pred(:)()vermek için ara.

Düzenleme: Yardımcı işlevlerini, bildirmek yerine parametreler olarak geçirmeyi öneren @ Ørjan Johansen'e teşekkür ederiz , dört puan baytı kurtarır !

Parantez olmayan baytlar

=
'Y'pred:

O nasıl çalışır?

Bir dize "wxy"Haskell karakterlerin listesi için sözdizimsel şeker ['w','x','y']tekrar eksileri operatörü ile sonradan yapımı için sözdizimsel şeker, :ve boş listeye: 'w':'x':'y':[]. Tanımlayarak (<<>>)=(:)aynı dizgeyi yazarak veririz 'w'<<>>('x'<<>>('y'<<>>[])).

Karakterler sipariş edildiğinden, her karakterin öncülünü adı verilen bir işlevle hesaplayabiliriz pred. Sadece karakter kullanarak 'y've preddize olur pred(pred 'y')<<>>(pred 'y'<<>>('y'<<>>[])). Tanımlayarak (<>)=predve (<><>)='y'yalnızca dengeli parantez kullanarak dizeyi temsil edebiliriz:
(<>)((<>)(<><>))<<>>((<>)(<><>)<<>>((<><>)<<>>[]))

Ancak, sonunda bir dize istemiyoruz, bir dize döndüren bir işlev istiyoruz, dolayısıyla cons operatörümüzü bunun (<<>>) x xs ()=x:xsyerine tanımlarız . (Elbette xve xsyalnızca dengeli parantez kullanan tanımlayıcılarla değiştirilmiş:) (<<>>)(<>)(<><>)()=(<>):(<><>). Bu yoldan,

((<>)((<>)(<><>))<<>>((<>)(<><>)<<>>((<><>)<<>>[])())())

bir tür () -> Stringekleme ve bir son ekleme işlevi ()orijinal dizgiyi verir:

((<>)((<>)(<><>))<<>>((<>)(<><>)<<>>((<><>)<<>>[])())())()

Biz dört argüman alan bir fonksiyon bildirerek birine üç beyanlarını yoğunlaşmasına olabilir, ancak skoru 15. ile bir çözüm elde Bu yöntemi kullanarak: 'z', pred, (:)ve ()çağırmak için.


Aşağıdaki işlev encode, karakterleri 'y'bu şekilde küçük veya eşit karakterleri olan bir dize olarak kodlar : (Neden y? Çünkü en büyük karakter "Surprise!\nHappy Birthday, Brain-Flak!"ve bu nedenle en kısa gösterimi sağlar.

c x = let l = fromEnum 'y' - fromEnum x  
      in "(" ++ ([1..l]>>"((<>)") ++ "(<><>)" ++ ([1..l]>>")") ++ "<<>>" 
encode s = concatMap c s ++ "[]" ++ ([1..length s-1]>>")()") ++ ")"

Çevrimiçi deneyin!


Maalesef, kendimi düzenlemeden önce yeni yayınları kontrol etmedim ... ve tam tersi yönde bir bayt daha var!
Ørjan Johansen

Düzenlememi geri aldım.
Ørjan Johansen

Yana 'z'aslında amaç dizede oluşmaz, sana kullanarak bayt sayısı kravat kesici azaltacağını düşünüyoruz 'y'yerine.
Ørjan Johansen

1
Güzel numara, nasıl isimsiz hale getireceğimi merak ediyordum. Ancak bu bana başka bir fikir veriyor: Yardımcı işlevler parametreleri yaparak 4 bayttan daha fazla tasarruf edebilirsiniz . Yani(<<<>>>)(<><>)(<>)(<<>>)()=...;(<<<>>>)'y'pred(:)
Ørjan Johansen

1
İki bayt, dört değil. Çevrimiçi deneyin!
Ørjan Johansen

12

Retina , 59 - 24 = 35 bayt


Su{p()se!¶Ha<<>[]i{thd}>,[](a)n-Fl}k!
T`<>()[]{}`\pyri Bra

Çevrimiçi deneyin! Buna karşılık, sıkıcı çözüm 38 bayt alır.


1
Vay, bu meydan okuma için çok akıllıca bir sıkıştırma yöntemi. +1 :-) 'a sahip olun
ETHproductions

12

Jöle , 7 6 bayt

“”Lb⁹Ọ

İçinde “”bu jöle programının çıkışını koymak gerekir:

⁾()Ȯ“cWṪḂÇa'ỴOḞḊʂFGĖƓẋ0Ɗ/⁷ẓƊĖṘḲ"ÇẈW'ⱮḟėıḲ7¿’¡

-1 byte sayesinde Jonathan Allan (izin arka satır)

Arasında 53127666317289661939246122975355844970973062889031671423309402549417051416384149‌ 80886139013 (bu adla geliriz n) ()arasında “”.

Açıklama :

“” Lb⁹Ọ ḷ “Ana bağlantı. Bağımsız Değişkenler: 0 ”
“” Ḷ “n çift yuvarlak köşeli ayraç içeren”
  L ḷ “Uzunluğunu al”
   b base ḷ “Base 256'ya dönüştür (rakamları temsil eden inç)”
     Char ḷ “Karakter kodlarını karaktere dönüştür”


İyi bir Erik :)
Jonathan Allan

yani bu gerçekten pratikte çalışmıyor, değil mi?
Sarge Borsch

1
@SargeBorsch Uygulaması? Hayır, pratik kimin umrunda?
Outgolfer Erik,

11

Lenguage , 0 bayt

Dengeli parantez yapılmış Hemen 10024793746353848520175158940670214213802394805963081469362831141755126591573942436182287015467334956253918417576118983828148929806934751198148656645940502264502520032312455157880058174845907554602116807351044784410936407102892289953027884533102082518964744402664917253792543505897552998982122997648280947470217067174451441654554437678556775097996646071948 bayt.

Python 3 programı en sevdiğim sürümü oluşturmak için, yeterli zaman ve bellek verildi:

for i in range(0x4e24a0fa26624a0fa00084984c021249249800000004000c5001f509c4941f5312507d18062800007d4c494000fa10e0112497d4800000021c49283e80831403ea1c4941f44c000000100849249249309261260c4941f400871280003ea124924924c18a01f50938924a0fa30018a003e80800000100004c492500fa10625001f421389283ea124924926000000010601125f46):print(end='()')

1
Ha? Neden indirimler? Bu cevap geçerli. Soru, önemsiz dillerde cevap vermeyi açıkça yasaklamıyor, sadece önemsiz olmayan bir dilde yazmanızı teşvik ediyor.
Outgolfer Erik,

15
Yine de cehennem gibi sıkıcı. Neden reddedildiği açıkça belli olmalı. Sadece geçerli olması sıkıcı olmadığı veya kuralların kötüye kullanıldığı anlamına gelmez.
Rɪᴋᴇʀ

@Riker Eh, birisi zaten onu göndermek zorunda kaldı, sadece Brain-Flak varyantlarına izin verilmedi.
Outgolfer Erik,

1
1814382933791978604180811513276951596891496241887282518341046923729565882935872511161361237442639477201197909462276216213505390716388781699995156144914006643460505208562917269884967739569849775334582997489357826941308223133279896950569038552439752566374191225909282002406578832005197375356729715483875184532677626663572228849651637974329845225525069790860 parantez daha az bayt için daha iyi çalışır
Christopher

5
Birkaç trilyon bayt golf oynadım. Çok fazla bir şey yok
Christopher

9

Haskell , ( 12006 13485 bayt), puan 18 17

DÜZENLE:

  • -1 bayt: Bir pahasına, ana işlevine toEnumhareket ettirerek sürümün uzantısız çalışmasını sağlayın .toEnum$
  • -1 bayt, sonra tekrar +1: Düzenleme geçmişine bakarsanız, tamamen farklı bir şeye geçtiğimi göreceksiniz. Ve daha sonra diğer cevapları kontrol edip @Likonik'in bir saat önce neredeyse aynı fikri yaptığını ve daha iyi bir bayt aldığını gördüm. Bu yüzden önceki yöntemime geri döndüm.

Olarak kullanın putStrLn$(<<>>)().

(<<>>)<>(<<<>>>)=length(<<<>>>):(<<>>)
(<<>>)()=toEnum<$>...

Çevrimiçi deneyin!

nerede ...aşağıdaki ifadenin sonucunu dizesidir:

convert="[]"++concat["<>([]"++([1..fromEnum c]>>"<>[]")++")"|c<-reverse"Surprise!\nHappy Birthday, Brain-Flak!"]

Sadece dengeli olmayan karakterler

=length:
=toEnum$

Aşağıdaki varyant (13484 bytes), GHC'nin ExtendedDefaultRulesgenişletilmesine ihtiyaç duyması dışında 16 puan aldı ve bu nedenle yalnızca varsayılan olarak GHCi'de çalışıyor. (Eğer uyarıları yığınları gibi sürece, aynı zamanda istediğiniz -fdefer-type-errorsve -Wno-deferred-type-errorsnedense.)

(<<>>)<>(<<<>>>)=toEnum(length(<<<>>>)):(<<>>)
(<<>>)()=...

Çevrimiçi deneyin!

Nasıl çalışır

  • Haskell, kendi (çok karakterli) operatörlerinizi tanımlamanıza izin verir ve <>yasal operatör karakterleridir. Dahası, parantez içine alındığında, bunlar sadece iki argüman işlevi yerine herhangi bir değer için kullanılabilir.
  • (<<>>)İkinci satırda ana işlev, tek bir kukla argüman alır ()ve son dizeyi döndürür.
  • Operatör <>iki liste alır ve ikincinin uzunluğunu birinci olana kadar hazırlar (ikinci versiyonda, aynı zamanda uzunluğu bir karaktere dönüştürür.) İşleçler varsayılan olarak ilişkiseldir, bu yüzden kolayca zincirlenir.
  • Artık herhangi bir uzunlukta bir liste ile boş listeler zincirlenerek []oluşturulabilir <>.
  • Son dize artık uzunlukları istenen karakterleri kodlayan zincirleme listeleriyle oluşturulabilir - bu sadece dengeli ()<>[]karakterleri kullanır - ve sonra (ana sürümde) toEnumsonuçta ortaya çıkan listenin üzerinde eşleme yapar .

Vaov! Bu oldukça etkileyici
Buğday Sihirbazı

8

Japt , 19 14 13 10 9 8 bayt

"(()()...()()<"q>)m(l)m(d)q

başlangıçtaki dizenin bulunduğu yer:

(()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()())<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()())<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()<>()()()()()()()()()()()()()()()()<>()()()()()()<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()())<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()<>()()()()()()()()()()()()()()())<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()())<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()())<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()<>()()()()()()()()()()()()()()()()()()()()())<>()()()()()()()()()()()()()()()(<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()())<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()())<>()()()()()()()()()()()()()()()()()()()()()()<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()())<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()<>()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()<>()()()()()()()()()()()()()()()()<

Toplam bayt sayısı "yalnızca" 6694 3394 3354'tür , bu nedenle çevrimiçi deneyebilirsiniz!

açıklama

Kullanılan asıl yöntem diğer cevaplarda açıklanmıştır: Bölün, <>her bir parens eşlemesini eşleştirin chr(len(x)), boş dizeye tekrar katılın. İşte, eğlenceli olan kısım golf.

"Golf" den önce, orijinal kod şöyle görünebilir

"..."q"<>" mZ{Zl d} q""

ki bu tam anlamıyla bir tanım: "...".split("<>").map(Z => Z.length.toChar()).join("")Şimdi parantez dışı karakterleri en aza indirmemiz gerekiyor. Nasıl? İlk önce biraz golf oynayabiliriz:

"..."q"<>" ml md q

Bu kabaca temsil eder "...".split("<>").map(Z => Z.length).map(Z => Z.toChar()).join().

Şimdi Japt'in parantezleri ele almasının kafa karıştırıcı yolunu kötüye kullanabiliriz. (çoğu dilde olduğu gibi bir seviyeye çıkmayı )temsil eder , ancak iki seviyeye inmeyi (boşluk bir seviyeden aşağıya iner) gösterir; bu, kodu şu şekilde optimize edebileceğimiz anlamına gelir:

"..."q("<>")m(l)m(d)q

Bu kod yukarıdakilerle aynı şekilde hareket eder, ancak iki daha az parantez içermeyen karakter kullanır.

Ek olarak, bir işleci bir işlevin ilk girişi ise, işlevin ne yapacağına karar verebilmesi için dizgeye dönüştürülür. Bu, parantezlerin her bir kısmını yalnızca 1 byte kısaltır ve >bunun yerine bölersek ( >)kodun sonucunu iptal etmek için bazı akıllıca düzenlemelerle) , alıntılardan kaçınabileceğimiz anlamına gelir :

"(...<"q>)m(l)m(d)q

İki tırnak işareti çıkardığımız için bu bize iki bayt daha kazandırır.


8

Haskell , ( 1965 3131 18073 bytes), skor 31 23 19

(<>)=(:)
(<<>>)=['\n'..]
(((<<><>>):(<<<>>>))<<>><>([()]:(<><>)))()=(<<><>>)<>(((<<>>)<<>><>(<><>))())
(((<<><>>):(<<<>>>))<<>><>((<><><>):(<><>)))()=((<<<>>>)<<>><>(<><>))()
f=(<<>>)<<>><>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([]<>([()]<>([])))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

Çevrimiçi deneyin! Kullanımı: Son satır anonim bir işlevdir. Örneğin onu bağlayın fve ile arayın f().

19 ayraç olmayan bayt

=:
='\n'..
::=
::=

artı takip eden bir newline.


Skor 23 versiyonu (3131 bytes):

(<<>>)=['\n'..]
(('{'{-}-}:(<><>))<>((<<><>>):(<<<>>>)))()=(<<><>>):((<><>)<>(<<>>))()
(((<><><>):(<><>))<>((<<><>>):(<<<>>>)))()=((<><>)<>(<<<>>>))()
"[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][{}][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][{}][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][{}][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][]{{}}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][{}][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][{}][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][{}][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][{}][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][{}][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][{}][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][{}][][][][][][][][][][][][][][][][][{}][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][{}][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][{}][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][{}][][][][][][][][][][][{}]"<>(<<>>)

Çevrimiçi deneyin! 23 ayraç olmayan bayt

='\n'..
''--::=:
::=
""

Skor 31 sürümü (1965 bayt):

(<<>>)=['\n'..'~']++(<<>>)
putStr[(<>)|('{'{-}-},(<>))<-zip">[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][{}][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][{}][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][{}][][][]{}[][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][{}][][][]{}{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][{}][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][{}][][][][][][][][][][][][][][][][{}][][][][][][][][][][][][][][][][][][][][][][][{}][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][{}][][][{}][]{}[][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][{}][][][][][][][][][][][][][][][][][][{}][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][{}[][][][]{}][][][][][][][][][][][][][][][][][][][][]{}"(<<>>)]

Çevrimiçi deneyin!

Tüm parantezler çıkarıldıktan sonra, bu 31 bayt kalır:

='\n'..'~'++
putStr|''--,-zip""

O nasıl çalışır?

['\n'..'~']~yazdırılabilir tüm ASCII karakterlerini içeren yeni satırdaki tüm karakterlerin listesini verir . (<<>>)verilen puanlama kuralı altında sıfır bayta sahip olmak için seçilen bir tanımlayıcıdır. (<<>>)=['\n'..'~']++(<<>>)Böylece karakter listesinin sonsuz bir tekrarını verir.

İkinci satırda zip"> ... "(<<>>)sonsuz dizili uzun bir parantez dizisi sıkıştırılır, bu da birinci bileşende bir parantez kömürü olan bir teneke listesi ve ikincisinde bir miktar ASCII kömürü verir. Bu listedeki her grup için, kalıpla ('{'{-}-},(<>))uyuşup uyuşmadığını, yani {ilk bileşen olarak bir dirseğin olup olmadığını kontrol ederiz . {- ... -}Haskell'de bir satır içi yorumdur, bu yüzden '{'{-}-}dengeli bir versiyonudur '{'. Eşleşme başarılı olursa, (<>)dizinin ikinci bileşeni tanımlayıcıya bağlanır ve liste anlama yoluyla dizge derlemesine eklenir. Sonunda putStrdizeyi yazdırır. putStr[(<>)|('{'{-}-},(<>))<-zip"> ... "(<<>>)]


Dize doğrudan yazdırma 46 bayttır:

putStr"Surprise!\nHappy Birthday, Brain-Flak!"

Parantez dışı bayt olarak <> dahil edildiğiniz görülüyor.
Brian Minton

@BrianMinton Fark ettiğiniz için teşekkürler! Bunun yerine takip eden bir yeni satır olmalıydı.
Laikoni

6

HTML, 37 Bayt

Surprise!<p>Happy Birthday, Brain-Flak!

Surprise!<p>Happy Birthday, Brain-Flak!


1
Buna <br>benzer bir etiket kullanabilirsiniz :Surprise!<br>Happy Birthday, Brain-Flak!
Loovjo

@Loovjo göndermeden önce denedim <br>gibi bir bayt daha uzun <p>. Biraz daha hoş görünüyor. Kapatma etiketi kullanmıyorum
Jörg Hülsermann

1
Tamam. İlk önce <p>buna ihtiyacın olduğunu sanmıyorum .
Loovjo

@Loovjo Evet bu doğru düşebilirim Teşekkür Ederim
Jörg Hülsermann

3
@Luke Konsensüs , kolmogorov-karmaşıklık zorluklarının bir programlama dili gerektirmediği yönündedir. (Ve HTML, yine de JS için sarıcı görevi görebilir.)
Arnauld,


5

Pyth, 4⃠ 3⃠2 bayt

Zalgo Unicode magic kullanıyorsanız, 4'ü geçti 4 normal değil

Roman Gräf ve Neil'a 1 byte tasarruf sağladıkları için teşekkürler.

Kod Cl(()()()()()())dış parantezin 41505989310382548390036033574496753883572705382055993299460470741732071419050117038172961birleştirilmiş kopyalarını içerir (). (Yığın Değişimi tam kodu göndermeme izin vermedi.)

Boş tuples ( ) bir demet ( ()) oluşturur (), ( l) uzunluğunu alır ve bunu bir base-256 dizgisine ( C) dönüştürür.


hSadece başka bir parantez çifti eklemeniz gerekmiyor mu?
Roman Gräf,

2
@ RomanGräf Sonuçta tek bir sayı olması gerektiğini düşünüyorum.
Neil,

1
@ RomanGräf İstenilen temel-256 sayı tuhaf ve dizgenin dengelenmesi gerekiyor (ve dolayısıyla eşit uzunlukta), bu nedenle bu en uygun puan olmalıdır.
PurkkaKoodari

Sen biliyor olabilir shift h;-) sağa iki konum ve hala mükemmel çalışacak
ETHproductions

1
"Stack Exchange bana tam kodu göndermeme izin vermedi." - Eğer varsa tam kod ?!
Jonathan Allan

5

Japt , 6687 bayt, skor 5

(([[[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]][[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]]]ml)md)q

Çevrimiçi deneyin!

Bu, diğer Japt cevabına benzer bir damarda , ancak bir dize yerine iç içe dizileri kullanıyor. İç içe dizilerle ilgili güzel şeyler (onları tanımlamanın herhangi bir bayt almadığı gerçeğinin yanı sıra) önceden organize edilmiş olmalarıdır, yani <>büyüye bölünmüş herhangi bir fantezi yapmak zorunda kalmazsınız ya da büyük bir parçadan kod çözemezsiniz temel 256 sayı veya bunun gibi bir şey. Gerçek mantık sadece .map(X => X.length).map(X => String.fromCharCode(X)).join("").


4

Çip , 553 + 3 = 556 bayt, puan 127 + 3 = 130

((<>)ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZt()(((((((((((((((((((((((((((
((()))))))))xx)))))x))))))))xx)))))x))))xg()((((((((((((((((((((((((((((((((({
*})<>))))))))xx)))))x)))))))))x)))))x))))f)*{((((((((((((((((((((((((((([
Z<>])xxxx)x)))))xxx)))xx)))x)))x)))))))))))}e{((((((((((((((((((((((((
((())))))x)))xx)))x))x))x))xx))))xxx)x)x)))}d{((((((((((((((((((((((((((((
((())x)))))x)))))))))))x)x))x)))))xxxx)))))}c{((((((((((((((((((((((((
(((())x)x)x))x))))))x)x)))))))xx))x)x))x)))}b{(((((((((((((((((((
(((()x)))xxxx))x))x))x))))xx))))xx)x))xxx))}a

Arg için +3 -w. Çevrimiçi deneyin!

Parantez olmayan baytlar

ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZt
xxxxxxxg
*xxxxxf*
Zxxxxxxxxxxxxe
xxxxxxxxxxxxxd
xxxxxxxxxc
xxxxxxxxxxxb
xxxxxxxxxxxxxxxxa

Ungolfed / dengesiz:

*}vZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZt
Z'))))))))xx)))))x))))))))xx)))))x))))xg
  x))))))))xx)))))x)))))))))x)))))x))))f
  )))))x)xxxxx)))xxx))xxx)xxx)xxxxxxxxxe
  xxxxx)xxx))xxx)xx)xx)xx))xxxx)))x)x)xd
  x)xxxxx)xxxxxxxxxxx)x)xx)xxxxx))))xxxc
  )x)x)x)xx)xxxxxx)x)xxxxxxx))xx)x)xx)xb
  ))xxx))))xx)xx)xx)xxxx))xxxx))x)xx)))a

Gördüğünüz gibi, orijinal kod sadece sağ taraftaki parantezleri kullanır, bu nedenle tüm sol taraftaki parantezler yalnızca dengeleme içindir. Bu çözümün ortaya çıkması sırasında, daha önceki cevaplarım için sahip olduğum Chip gibi daha yoğun bir ip temsili buldum, örneğin, merhaba dünya , ve ben de bunları güncelledim.

Nasıl çalışır:

Soldan sarkan bit bir şeyleri başlatmak için 1-döngü darbe üretir. Bu darbe Z, döngü boyunca zamanlamayı sağlayan çevrim başına 1 oranında hareket eder. Her bir zaman Zdesteklenmektedir, bu karşılık gelen Kolon daha sonra elemanlar tarafından çıkışı alır indeksi, karakterin ASCII kod üretir ayoluyla g(yüksek bit dışında çıkış bayt bit başına bir hzaman 0). Tamamlandığında, tyürütmeyi sonlandırır.

Ascii kodlaması basittir: )1 xanlamına gelir ve 0 anlamına gelir. Ancak, alt 5 satır çoğunlukladır x, bu yüzden bu bitleri son çözümde tersine çeviriyorum, iki simgeyi etkin bir şekilde değiştiriyorum.

Bu mümkün olan en iyi skor mu?

Şüpheliyim. Mutlak asgari düzeyde, aşağıdakilere ihtiyacımız olduğunu düşünüyorum: 1, her biri aiçin g, bunlar aktif çıkış bitleridir, çünkü *bir başlatma sinyali sağlamak için 1 veya benzeri, tyürütmeyi sonlandırmak için 1 , her harfin zaman aşımına uğraması için 36 Zs veya zs ve komut argümanı -w. Tüm bunlar 48'lik bir puanla toplanır.

Bu teorik minimumun üstünde, çözümümün 7 yeni satırı, bir saniye *, bir ekstra Zve 73 xs'si var.


4

C, 9265 bayt, puan 37

i;f(){for(i=0;putchar(i+=strspn("[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[<[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[<[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[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]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]>]>]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]>]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]>]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]>]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]"+i,"[]")+1););}

Çevrimiçi çalıştığını görün .

C, 8589934626 bayt, puan 34

i;f(){for(;putchar(i+=strspn("STRING"+i,"[]")+1););}

Nerede STRINGyukarıdaki örnekte kullanıldığı gibi, bir alt dize vardır dize çok orta iki değişiklik olduğu aynı büyük dize hariç edilir <>. Hemen önce <4294962688 ek [karakter ve hemen sonra >4294962688 ek ]karakter.

Program aşağıdaki varsayımlar altında çalışacaktır:

  • INT_MAX 2 ^ 31-1 ve INT_MIN -2 ^ 31'dir.

  • İmzalı aritmetik için sarma davranışı ile derlendi. (-Fwrapv)

  • Strspn işlevi, bir kerede 4294962689 karakteri işleme yeteneğine sahiptir.

  • Derleyici, 8589934592 karakterinden oluşan bir dize değişkeni derleme yeteneğine sahiptir.

Bu varsayımlar, int türünün 4 bayt ve type_t_t 8 bayt olduğu modern 64 bit mimarilerde mümkündür. Strspn işlevi type_t döndürür ve aynı tür, maksimum nesne büyüklüğü için dahili sınırla ilişkilidir. Size_t, 8 bayt olan son iki varsayımı karşılayacaktır.

Bu sürümdeki bu fark, i değişkeninin, son karakter basıldıktan sonra 0'a dolandığından, 0'a sıfırlanması gerekmediğidir.


3

Haskell , 9735 bayt, skor 9

'y'<<>>pred
(<><>)<<>>(<<>>)=[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>))))))))))))))))))))))))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)(<><>))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>))))))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))))))))))))))))))))))))))))))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>))))))))))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))))]<>[(<><>)]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))))))))))))))))))))))))))))))))))))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>))))))))))))))))))))))))]<>[(<><>)]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))))))))))))))))))))))))))))))))))))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>))))))))))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))))))))))))))))))))))))))))))))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>)))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>))))))))))))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>))))))))))))))]<>[(<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)((<<>>)(<><>))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))]

Çevrimiçi deneyin!

9 puan baytı

'y'pred
=

Haskell güncel sürümlerinde bu eserler (GHC 8.4 veya daha yeni) (<>)bulunmaktadır Prelude. Bunun benim önceki çözümümü bozduğuna, ancak başka bir puanlama baytı kaydetmenize olanak sağladığına işaret eden Ørjan Johansen'e teşekkürler .

açıklama

Gibi (<>)aynıdır iki listelerinde (++), bir dize temsil edebilir "abc"olarak "a"<>"b"<>"c"yerine. Dizeler karakter listeleridir, bu yüzden ['a']<>['b']<>['c']aynı dizgeyi gösterir. Biz O'ndan en yüksek tane sopa böylece Şimdi, önceki yanıtta olduğu gibi, sadece, tek bir karakter değişmezi istiyorum 'c've bunun öncülleri olarak başkalarını temsil: [pred(pred 'c')]<>[pred 'c']<>['c']. Son olarak, değiştirerek 'c'ile (<><>)hangi geçerli bir tanımlayıcı olup predbirlikte (<<>>), biz dize bir kodlama olsun "abc"sadece dengeli parantez oluştuğunu: [(<<>>)((<<>>)(<><>))]<>[(<<>>)(<><>)]<>[(<><>)].

Aşağıdaki işlev, rasgele bir dizgiyi bu şekilde kodlar:

f s = show max_char ++ "<<>>pred\n(<><>)<<>>(<<>>)=" ++ encode s
    where
        max_char = maximum s
        s `unless` b = if b then "" else s

        encode [] = ""
        encode (x:r) = 
            let repl = ([succ(succ x) .. max_char] >>)
            in ""
               ++ "[" 
               ++ repl "(<<>>)(" 
               ++ "(<<>>)" `unless` (x == max_char)
               ++ "(<><>)" 
               ++ repl ")"
               ++ "]" 
               ++ "<>" `unless` (r == "")
               ++ encode r

Çevrimiçi deneyin!


Çok fazla (<<>>)kullanıldığından, adını değiştirirseniz <>(bunlardan birini ekstra bir parametre olarak geçirerek), bayttan çok tasarruf edeceğini düşünüyorum .
Ørjan Johansen

2

C # Etkileşimli, 45 Bayt

"Surprise!\nHappy Birthday, Brain-Flak!"

Biliyorum, çok sıkıcı ama C # interaktifinde çalıştırılırsa, istenen çıktıyı veriyor - ve aslında bunu C # 'da çözmek için daha küçük bir yol olduğundan şüpheliyim.

Ancak, daha şık bir yolu var:

var a=new BitArray("[][]()()[]()[]()[]()[]()[][][]()()[]()()[][][]()()()()()[][][]()()[]()()[][][]()[]()()[]()[][]()[][]()()[][][]()[]()[]()()[][]()[]()()()()[]()()()[]()[]()()()()()()()[]()()[]()[]()()()()[][]()()()()()[][][]()()()()()[][][]()[]()()[][][][]()()()()()()[]()()()[]()()()()[]()[]()()[]()[][]()()[]()()[][][]()()()[]()[][][]()()()()[]()[][]()()()[]()()[][]()[]()()()()[][]()[]()()[][][][]()()()[][]()[]()()()()()()()[]()()()[]()()()()[]()()[]()()[][][]()[]()()()()[][]()[]()()[]()[][]()()[][][]()[][]()[]()[][]()[]()()()[][]()()()[]()()()[][]()[][]()[]()()()()[][]()[][]()[]()[][]()[]()()()()[]()()".Replace("()","0").Replace("[]","1").Select(/*<*/s=>s=='1').ToArray());var b=new byte[a.Count];a.CopyTo(b,0);Console.Write(Encoding.UTF8.GetString(b));

Ama bu 145 Byte büyük.

Satır sonları ile öyle görünüyor:

var a = new BitArray(
    "[][]()()[]()[]()[]()[]()[][][]()()[]()()[][][]()()()()()[][][]()()[]()()[][][]()[]()()[]()[][]()[][]()()[][][]()[]()[]()()[][]()[]()()()()[]()()()[]()[]()()()()()()()[]()()[]()[]()()()()[][]()()()()()[][][]()()()()()[][][]()[]()()[][][][]()()()()()()[]()()()[]()()()()[]()[]()()[]()[][]()()[]()()[][][]()()()[]()[][][]()()()()[]()[][]()()()[]()()[][]()[]()()()()[][]()[]()()[][][][]()()()[][]()[]()()()()()()()[]()()()[]()()()()[]()()[]()()[][][]()[]()()()()[][]()[]()()[]()[][]()()[][][]()[][]()[]()[][]()[]()()()[][]()()()[]()()()[][]()[][]()[]()()()()[][]()[][]()[]()[][]()[]()()()()[]()()"
        .Replace("()", "0")
        .Replace("[]", "1")
        .Select(/*<*/s => s == '1')
        .ToArray());
var b = new byte[a.Count];
a.CopyTo(b, 0);
Console.Write(Encoding.UTF8.GetString(b));

Bu, parantezleri boolean değerler ve ardından bir string olarak yorumlar.

Aslında ben gelişmiş bir kod golfçü değilim, bu yüzden herhangi bir öneriniz takdir!


.Select(s =>S -> <S>.Select(/*<*/s =>
Uyum

Ayrıca çözümünüz bir kod
pasajıdır

@ Khaled.K Aslında C # interaktif
MetaColon

1
Daha sonra normal bir C # programından ayırt etmelisiniz, belki de başlığını değiştirmelisiniz C# Interactive, bence C # interaktif olarak yorumlanmış, derlenmemiş, ama yine de bir program olarak yazılmıştır \ script
Khaled.K

2

CJam , 6683 bayt, puan 3

[(a lot of square brackets omitted)]{,c}%

Sayfayı çok fazla karıştırmamak için buradaki kodu kısalttım. Kodun tamamını TIO bağlantısında görebilirsiniz. Parantez olmayan tek karakterler ,c%.

Çevrimiçi deneyin!

açıklama

Program, bir dizi boş diziden oluşan bir dizi iterek başlatır. Her alt dizi, istenen dizgede bir karakterin ASCII değerine karşılık gelen birkaç boş dizi içerir. Daha sonra, her alt dizi ( {...}%) için, dizinin ( ) uzunluğunu alır ,ve bu uzunluğu bir karaktere ( c) atar .

Sonuçta ortaya çıkan dize dolaylı olarak yazdırılır.


2

C, 69 64 bayt

Çevrimiçi dene

f(s,t)char*t;{if(*t)*t-123||putchar(s),f(s+(*t==60)-(*t==91),t+2);}
main(){f(83,"{}<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>{}[][][]{}[][]{}<><>{}[][][][][][][][][]{}<><><><><><><><><><>{}[][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][]{}<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>{}<><><><><><><><><><><><><><><><><><><><><><><><><>{}<><><><><><><><><><><><><><><>{}{}<><><><><><><><><>{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>{}<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>{}<><><><><><><><><>{}<><>{}[][][][][][][][][][][][]{}[][][][]{}[][][]{}<><><><><><><><><><><><><><><><><><><><><><><><>{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][]{}<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>{}<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>{}[][][][][][][][][][][][][][][][][]{}<><><><><><><><>{}<><><><><>{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}<><><><><><><><><><><><><><><><><><><><><><><><><>{}<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>{}[][][][][][][][][][][]{}<><><><><><><><><><>{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}");}

Nasıl yaptım

p(int x){putchar(x);}
j;f(char*t){ p(t[0]); for(int i=1; t[i]; i++){ j=t[i]-t[i-1]; while(j>0)p('<'),p('>'),j--; while(j<0)p('['),p(']'),j++; p('{'),p('}'); }}
  • Sonraki yerime başkasının *ile {}, >birlikte <>ve <birlikte []onlar sayılmaz bu yüzden, şimdi bu kodu sayısı nedeniyle başlayan karakterinin 1'dir S.
S<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>{}[][][]{}[][]{}<><>{}[][][][][][][][][]{}<><><><><><><><><><>{}[][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][][][][][][][][][][][][]{}<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>{}<><><><><><><><><><><><><><><><><><><><><><><><><>{}<><><><><><><><><><><><><><><>{}{}<><><><><><><><><>{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>{}<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>{}<><><><><><><><><>{}<><>{}[][][][][][][][][][][][]{}[][][][]{}[][][]{}<><><><><><><><><><><><><><><><><><><><><><><><>{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}[][][][][][][][][][][][]{}<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>{}<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>{}[][][][][][][][][][][][][][][][][]{}<><><><><><><><>{}<><><><><>{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}<><><><><><><><><><><><><><><><><><><><><><><><><>{}<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>{}[][][][][][][][][][][]{}<><><><><><><><><><>{}[][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][][]{}
  • Sonunda sadece özetleyen <>, çıkartan, []geçerli toplamı yazdıran {}ve dizenin sonunda sonlanan bir çözümleyici yazdım \0.

C, 49 bayt Çevrimiçi Deneyin

main(){puts("Surprise!\nHappy Birthday, Brain-Flak!");}

1
pBazı baytları kaydetmek için sıraya giremez misin?
Laikoni

2

Lua 5.3, 108097107033101 bayt, puan 28 27

load(([[REPLACE]]):gsub([[[<>]-{()}]],[[%1]]):gsub([[...]],([[]]).char))()

Burada, REPLACEbir uzunluk 108097107033034 boş karakter dizesiyle değiştirilir. Dize {}, belirli anahtar konumlara koyarak verileri kodlar . İlki gsub, dizgiyi {}s'nin (boş yakalama grubu aracılığıyla) indeksleri ile değiştirecektir (). İkincisi gsub, bu sonuçlanan dizgiyi 3 basamaklı bloklara böler ve her bloğu ASCII gösterimi ile değiştirir.

Lua'daki ham dizgilerin sözdiziminin (temelde) [[string contents]]olduğunu ve puanın düşürülmesinde oldukça faydalı olduğuna dikkat edin.

Ürettiğim (çıkarılmamış) dize print"Surprise!\nHappy Birthday, Brain-Flak!". Her karakteri 3 basamaklı ondalık basamak ASCII koduyla değiştirmek size verir 112114105110116034083117114112114105115101033092110072097112112121032066105114116104100097121044032066114097105110045070108097107033034. Kullandığım kod yalnızca, ilk sıfırlarla başlamayan, artan doğal sayıların (en az 2 ayrı) dizisini oluşturabilir. Böylece, bu sayı bölünür 11, 2114, 105110, 1160340, 83117114, 112114105, 1151010330, 9211007209, 71121121210, 320661051141, 1610410009712, 10440320661140, 97105110045070, 108097107033034. (Bu son sayı tam olarak REPLACEdeğerin uzunluğudur , çünkü kalıbın son maçı }Lua-endekslerinin 1'de başladığını not ederek sonun endeksini verecektir. zor olmasa da, biraz değiştirilmek.)

Aslında bu programı oluşturup çalıştırmadım çünkü çok büyük (teorik olarak 64 bitlik bir makinede çalışabilmesine rağmen, sabit diskime sığmayacak).

Konseptin bir kanıtı olarak 3, aynı prensibi kullanarak basan küçük bir program :

p=print
load(([[<<><><><>{}<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>{}<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>{}><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>{}]]):gsub([[[<>]-{()}]],[[%1]]):gsub([[...]],([[]]).char))()

Bu, kod dizesini p"3", sayı 112034051034aracılığıyla bölünme yoluyla oluşturur 11, 203, 405, 1034.


2

Pip , 6681 bayt, skor 3

C#*[[()()...()]...[()()...()]]

(bir sürü parantez ve bazı köşeli parantezler düzenlenmiş halde). Çevrimiçi deneyin!

Her biri ()(nil) birkaç kez içeren bir liste listesi oluştururuz . #*uzunluk operatörünü eşler ve sonuçta bir liste halinde sonuçlanır. Cher sayıyı bir ASCII kodu olarak alır ve onu bir karaktere dönüştürür. Sonuçta ortaya çıkan karakter listesi otomatik olarak bir araya getirilir ve yazdırılır.

Mutlu yıllar, Brain-Flak!


1

Mathematica, 40 bayt

"Surprise!
Happy Birthday, Brain-Flak!"&

Anonim işlev Girdi almaz ve bir dize çıktı olarak döndürür.


1

Jöle , 19 21 bayt

“µḍ'Ṭẋs:|`¿wwƈг×U7¿»

Burada zekice bir şey yok, metnin sadece bir sözlük + string sıkıştırması ile eşleşmeyen bir yazıyı silmek için takip eden bir yeni satır <.

Gerçek bir golf sahası yaklaşımı için bu cevabı Outgolfer Erik'in görün.

Çevrimiçi deneyin!


1

PHP, 42 Bayt

<?="Surprise!
Happy Birthday, Brain-Flak!"?>

Çevrimiçi deneyin!

-5 Sıkıcı çözüm bayt

Surprise!
Happy Birthday, Brain-Flak!

PHP, 60 Bayt

<?=join(array_map(function($v){return chr(strlen($v)/2);},explode("[]","<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>[]<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>")))?>

Çevrimiçi deneyin!


Kaldırarak 5 tasarruf yapabilirsiniz<?=""?>
Robert Fraser

@RobertFraser biliyorum. Bu şu anda sadece bir metin dosyasıdır.
Jörg Hülsermann

@ JörgHülsermann Hayır, PHP tanımımıza göre bir programlama dilidir, onu bir metin dosyasına benzeyen bir şekilde kullanmak tamamen geçerlidir.
Outgolfer Erik,

@EriktheOutgolfer Tamam Ekledim ama sıkıcı ve tercih ettiğim çözüm değil
Jörg Hülsermann

@ JörgHülsermann Nihai hedefiniz golf oynamak, ilginç çözümler üretmemek. Belki daha fazla golf oynayabilmeniz için uyumlu parantezli bir ipin uzunluğuna göre bir versiyon yapabilirsiniz.
Outgolfer Erik,


1

Perl 5 , 3304 bayt, 16 puan

say(map{chr(y{()}{})}q[()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()({}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()({}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()({}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()({}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()({}()()()()()()()()()()()()()()()()({}()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()({}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()({}()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()){}()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()(){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()){}()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()){}()()()()()()()()()()()()()()()()({})()()()()]=~m{[()]+}g)

Çevrimiçi deneyin!

HeebyJeebyMan'ın Python çözümünün metnin çalıştırma uzunluğu kodlamasını kullanır.


0

Java, 140 bayt

Çevrimiçi dene

class H{public static void main(String[]args){
String t="()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()[]";
for(int i=0,s=0;i<t.length()/*>*/;i+=2){if(t.charAt(i)=='('/*)*/)s++;else{System.out.printf("%c",s);s=0;}}}}


Sitemizi kullandığınızda şunları okuyup anladığınızı kabul etmiş olursunuz: Çerez Politikası ve Gizlilik Politikası.
Licensed under cc by-sa 3.0 with attribution required.