Yes we will hopefully. Staff is actually supportive of the idea.
using System;
namespace testcs
{
class Program
{
static void Main(string[] args)
{
string x = "\nHappy Birthday ", y = x + "to You";
Console.Write(y + y + x + "Dear Qwerty" + y);
}
}
}
for lyric in range(2):
(greet:= lambda:print((happy:="Happy birthday","to you")))
print(happy,"dear Qwerty");greet()
Code not tested.
#include<stdio.h>
int main()
{
for(int c; c-5;)
printf("Happy Birthday %s\n",++c-4?"To You":"Dear Qwerty");
return 0;
}
#include <iostream>
int main(){for(int i=2;i--){std::cout<<"Happy Birthday"<<(i?"To You":"Dear QwertyQwerty54");}}
We could just make a string that includes the whole thing .
print('Happy birthday to to\netc.')
#include <discourse/api.h>
#include <stdlib.h>
int main() {
discourse *replit_ask;
discourse_login(replit_ask, "https://ask.replit.com", getenv("REPLIT_ASK_USERNAME"), getenv("REPLIT_ASK_PASSWORD"));
if(!replit_ask) abort();
// <span> to bypass minimum post length (this is entirely theoretical)
discourse_topic_reply(replit_ask, 18433, "Happy birthday!<span></span>");
}
for u β©βͺβ©β¬ β¬β©βͺβ© happy birthday to u β©βͺβ©β¬ β¬β©βͺβ© happy birthday to u β©βͺβ©β¬ β¬β©βͺβ© happy birthday dear qwerty β©βͺβ©β¬ β¬β©βͺβ© happy birthday to u
(=Ir#)>;:48v
v:,_@:"H"<
; ^,48*,:"a"<
>;^,48*,:"p"<
>;^,48*,:"p"<
>;^,48*,:"y"<
>;^,48*,:" "<
>;^,48*,:"b"<
>;^,48*,:"i"<
>;^,48*,:"r"<
>;^,48*,:"t"<
>;^,48*,:"h"<
>;^,48*,:"d"<
>:,@:"a"<
>:,@:"y"<
>:,_@:"!"<
(in malboge)
That wins for least readable and loses for fewest lines.
jsfsck should win on both unreadability and fewest lines
Malboge is a truly annoying thing β¦ among the worst
I go for the exotic code β¦
section .text
global _start
_start:
mov eax, 0x646168
push eax
mov eax, 0x20797270
push eax
mov eax, 0x74697070
push eax
mov eax, 0x20657061
push eax
mov eax, 0x79
push eax
mov eax, 4
mov ebx, 1
mov ecx, esp
mov edx, 13
int 0x80
mov eax, 1
xor ebx, ebx
int 0x80
PS: This is not mine β¦
print(βhβ)
print(β aβ)
print(β pβ)
print(β pβ)
print(β yβ)
print(ββ)
print(β bβ)
print(β iβ)
print(β rβ)
print(β tβ)
print(β hβ)
print(β dβ)
print(β aβ)
print(β yβ)
this was a pain to write
edit:
You could have written a program to write that:
Something like this:
with open('happy.py', 'w') as file: # This will create a file or overwrite an existing one
space = ''
for letter in 'happy birthday':
file.write(f'print("{letter}{space}")\n')
space+=' '
I think that will work. All in one program:
with open('happy.py', 'w') as file: # This will create a file or overwrite an existing one
space = ''
file.write('def main():\n')
for letter in 'happy birthday':
file.write(f' print("{letter}{space}")\n')
space+=' '
from happy import main
main()
Challenge: Make it handle when that file exists and compensate (and clean up after itself, maybe even search the filesystem for a writable dir if the current dir isnβt writable)
i dont care print(ββ)
superiority
I could make it search for the file but I donβt want to take the time to because itβs unnecessary.
what about with eval?
I used print
. I just also cheated and didnβt take the time to write it all out.