#dev-general

1 messages ยท Page 88 of 1

jovial warren
#

oh fuck off

#

not another reverse

onyx loom
#

whats with the number on the first line

jovial warren
#

I know what this is

onyx loom
#

e.g
5
1 2 3 4 5

#

its taking the median

jovial warren
#

^^^^^

onyx loom
#

i think

topaz bay
#

the median??

#

no

onyx loom
#

ah nvm its not

#

some average shit tho

prisma wave
#

i thought it was just the average

onyx loom
#

its not?

lunar cypress
#

got em again bm

prisma wave
#

๐Ÿ˜ฆ

hot hull
#

Lmao that was easy

prisma wave
#

you're literally the same time as me smh

spring canyon
#

lol

onyx loom
#

halp

spring canyon
#

My tests worked but I got 0%?

prisma wave
hot hull
#

Kali, sum / N

prisma wave
#

yeah?

hot hull
#

I meant Kali

jovial warren
#

wait wtf

onyx loom
#

the MEAN?

prisma wave
#

yes

lunar cypress
#

again, pls don't spoil while others are still doing this

old wyvern
#

ye

onyx loom
#

THATS AN AVERAGE

#

FFS

prisma wave
#

yes lol

#

ok

#

no spoilers anymore

jovial warren
#
import statistics
print(statistics.median(input()))

that returns 5?????????

prisma wave
#

๐Ÿค”

onyx loom
#

read up

hot hull
#

You shouldn't be looking here if you're still solving it smh

prisma wave
#

the first one might be an exception

#

true

old wyvern
#

frosty share code

hot hull
old wyvern
#

u can litrally press share there

#

xD

topaz bay
#

just click share code

#

4head

hot hull
#

smh

old wyvern
#

also we played throu 4 reverses

#

wht are the chances

hot hull
#

33.3333333333333 ๐Ÿ˜‰

prisma wave
#

(1/3) ^ 4

old wyvern
#

no

topaz bay
#

I like these ones

old wyvern
#

lesser

hot hull
#

Well, less

gentle coyote
#

My shitcode lol

hot hull
#

Sx, if they aren't some tricky shit they're nice

jovial warren
#

for some reason I can't do this lol

lunar cypress
#

ok the game is broken apparently lmao

hot hull
#

Lukas, share code

gentle coyote
#

but is it possible that they provide some shitty templates that are just to confuse me? mine just made no sense imo

old wyvern
#

use java bardy ๐Ÿ˜Ž XD

jovial warren
#

how do I convert that second line to an array?

hot hull
#

you're already looping it

gentle coyote
#

I was in a hurry so I just put some thing together to make it work somehow lol

hot hull
#

just add it all into a var

topaz bay
#

jesus fucking christ

#

what did you do!?!??!?!

spring canyon
#

Something is wrong I guess, my tests passed but I got 0% and @light leaf got something wrong and has 100% ยฏ_(ใƒ„)_/ยฏ

hot hull
#

Lukas, use java lol, that is disguisting

#

(as in the format)

gentle coyote
#

no

topaz bay
#

I would imagine yours is wrong because you output a double

old wyvern
#

double b = 0;

#

^^

lunar cypress
#

but there are cases where it must be a double

gentle coyote
#

So, as I asked, are these predefined things to confuse me?

topaz bay
#

how?

light leaf
#

double didn't work for me lol

hot hull
#

It has to be an int in this one

spring canyon
#

double worked but now I have 0%

lunar cypress
#

well that's the advantages of a dynamically typed language there lol

topaz bay
#

they were all int?

spring canyon
#

int didn't work

hot hull
#

doubles are usually specified preemptivelly

lunar cypress
#

I just used division and didn't care

prisma wave
#

Some were double tho?

topaz bay
#

When??

#

I didnt see any?

lunar cypress
#

some were yeah

hot hull
#

Not today KM?

topaz bay
#

My test cases were all ints

prisma wave
#

One of them was like 655.5 iirc

lunar cypress
#

one of my results was 5.5

prisma wave
#

yeah

old wyvern
#

and you also got like a million brackets well that's the advantages of a dynamically typed language

jovial warren
#

that was about as far as I got

#

look at my code

prisma wave
#

Wait are everyone's tests different???

hot hull
#

No

old wyvern
#

Wait are everyone's tests different???nope

hot hull
#

That wouldn't make sense if they were

prisma wave
#

yeah ik

#

but i definitely had some double ones

#

but apparently not everyone did

hot hull
#

Ye the 5.5 was the only double one

#

But you weren't using a var for that

#

So probs why noone noticed

lunar cypress
#

and you also got like a million brackets well that's the advantages of a dynamically typed language
@old wyvern literally just two parens more than you if you disregard the boilerplate

prisma wave
#

i'm really confused now

onyx loom
#

everyone here?

jovial warren
#

I think so

hot hull
#

Yes

prisma wave
#

it shouldn't even have worked

#

i was using integer division

old wyvern
#

starting

lunar cypress
#

yeah that one seemed to have some problems

onyx loom
#

what

#

i dont get it

#

oh nvm

gentle coyote
#

I don't get it too wtf

prisma wave
#

i got it

onyx loom
#

wait

#

so the input is the same?

#

for the wives n shit

prisma wave
#

yeah

#

it's all x

onyx loom
#

so theres the same amount of men, wives and kids?

jovial warren
#

that code is really short

prisma wave
#

not exactly

#

1 man has x wives, 1 wife has x kids

onyx loom
#

well yeah

prisma wave
#

if that clarifies things a bit

onyx loom
#

ty ty

prisma wave
#

so it's not just x * x * x

jovial warren
#

yeah it's ||x+(x*x)+(x*x*x)||

#

men + wives + kids

prisma wave
#

||SPOILERS||

lunar cypress
#

spoilers.....

spring canyon
#

Somehow interesting problem

#

xd

jovial warren
#

there ya go

topaz bay
#

ew...

lunar cypress
#

but wtf was that

topaz bay
#

This is why I dont like math

lunar cypress
#

they all have a harem or what

topaz bay
#

Why do they have so many wives!!!

#

what is this

jovial warren
#

no idea

old wyvern
#

xD

prisma wave
#

yeah i've got 3 wives and 9 kids

hot hull
#

That was interesting..

prisma wave
#

๐Ÿ˜Ž

jovial warren
#

finally a challenge I knew how to do lol

old wyvern
#

i've got 3 wives and 9 kidsHard work

#

xD

topaz bay
#

I wish kotlin math had int methods

#

;(

hot hull
#

Everyone got their own harem jesus fuck

old wyvern
#

xD

gentle coyote
#

Oh guys. I just wanted to use x^2

old wyvern
#

everyne is everyones X

hot hull
#

Yugi, that's yikes

old wyvern
#

xD

prisma wave
gentle coyote
#

But I didnt't thought about that's a logical XOR haha

jovial warren
#

everyone got it now?

#
x=int(input())
print(x+(x*x)+(x*x*x))

in python that's literally it lol

prisma wave
#

yeah

old wyvern
#

But I didnt't thought about that's a logical XOR hahaI was doing (x * (x+1) * (x+2))

hot hull
#

I read it as there's X men, which have a wife, with X children at first..

old wyvern
#

blink

#

1 more player to join?

jovial warren
#

yeah me

#

okay I'm in now

hot hull
#

Opera man

jovial warren
#

yeah

prisma wave
#

smh

hot hull
#

umm

jovial warren
#

I'm installing arch linux at some point hopefully today

hot hull
#

Hehe r3kt

jovial warren
#

done

topaz bay
#

WAIT WHAT

#

How did you get 100% alex?

onyx loom
#

what

topaz bay
#

Thats not even right?

onyx loom
#

how is mine wrong

prisma wave
#

?

#

it is right

topaz bay
#

Its a * a - a

hot hull
#

No?

topaz bay
#

you put 1

prisma wave
#

it's the same thing

jovial warren
#

if these were shortest I would've won again lol

prisma wave
#

I put a * (a - 1)

old wyvern
#

^

prisma wave
#

64 * 64 - 64 = 64 * (64 - 1)

topaz bay
#

Oh, I'm dumb

jovial warren
#

you don't need brackets since multiplication comes before subtraction

topaz bay
#

I didnt read the parentheses

spring canyon
#

I forgot the brackets...

old wyvern
#

I divided in a calculator the sample cast

prisma wave
#

you do need brackets for mine

old wyvern
#

case*

#

got 64* 63

#

xD

hot hull
#

lol Yugi

gentle coyote
#

you didnt @spring canyon

jovial warren
#

Brackets
Indices (powers)
Division
Multiplication
Addition
Subtraction

onyx loom
#

i wasnt doing it backwards

lunar cypress
#

im lost

onyx loom
#

i did it forwards....

spring canyon
#

That's why it took me so long @gentle coyote

lunar cypress
#

wtf is this supposed to be

gentle coyote
#

Ah

old wyvern
#

n * (n-1)

topaz bay
#

(* x (- x 1))

lunar cypress
#

oh

jovial warren
#

BIDMAS @old wyvern

#

no need for brackets there

prisma wave
#

you need brackets

old wyvern
#

yes

jovial warren
#

no ya don't

old wyvern
#

you need brackets

jovial warren
#

look at my code

prisma wave
#

otherwise it would be (n * n) - 1

spring canyon
#

You need

old wyvern
#

bod mas

prisma wave
#

you do lol

jovial warren
#

I did x*x-x

prisma wave
#

oh wait

topaz bay
#

Theyre doing - 1 before the multiplication

old wyvern
#

wtf is bidmas

spring canyon
#

Python is weird

topaz bay
#

instead of minus x

prisma wave
#

yeah

#

both work

hot hull
#

if you do it like x * x - x You don't

jovial warren
#

yeah

hot hull
#

otherwise you do

prisma wave
#

x * x - 1 wouldn't work

old wyvern
#

^

hot hull
#

That's what I just said

topaz bay
#

No, it would not

jovial warren
#

I see what you mean now

#

yeah

old wyvern
#

also whats I in bidmas?

prisma wave
#

too many people talking lol

#

Indices

old wyvern
#

wasnt it bodams?

jovial warren
#

Indices @old wyvern

prisma wave
#

exponents

old wyvern
#

ogh

prisma wave
#

^

old wyvern
#

bodmas*

hot hull
#

Johny you got this?

jovial warren
#

it was until you got to year 7 @old wyvern

old wyvern
#

is what we were taught

onyx loom
#

theyre the same thing

old wyvern
#

idk

onyx loom
#

bidmas and bodmas are the same

old wyvern
#

I wasnt thought that further

prisma wave
#

^

topaz bay
#

clojure is so ugly

gentle coyote
#

^

jovial warren
#

O in BODMAS is of

lunar cypress
#

no

jovial warren
#

I in BIDMAS is indices

lunar cypress
#

you're wrong

jovial warren
#

so BIDMAS is the correct one

old wyvern
#

I wasnt taught that

topaz bay
#

literally the ugliest shit ever

prisma wave
#

the O in BODMAS is orders

jovial warren
#

Indices aren't just powers

topaz bay
#

just like postfix

hot hull
#

Fuck is BODMAS

onyx loom
old wyvern
#

Why is this even an arguement

jovial warren
#

@prisma wave wasn't taught that lol

topaz bay
#

oh wait, its not postfix

prisma wave
#

prefix

lunar cypress
#

the high council has decided that your opinion is invalid

jovial warren
#

postfix?

old wyvern
#

2 more players to join

jovial warren
#

postfix is an SMTP server lol

old wyvern
prisma wave
#

@hot hull order of operations in maths

old wyvern
#

comon boys

jovial warren
#

I'm in

old wyvern
#

starte

jovial warren
#

also where are the shortest challenges?

prisma wave
#

BIDMAS = Brackets, Indices, Division, Multiplication, Addition, Subtraction

onyx loom
#

idk this 1 lol

jovial warren
#

yep

topaz bay
#

alex..

lunar cypress
#

WHAT

prisma wave
#

what

topaz bay
#

USE REPEAT DAMMIT

spring canyon
#

rip

prisma wave
#

no

#

i still was faster

hot hull
#

Rekt Yugi

spring canyon
#

Share code @lunar cypress

old wyvern
#

oi

lunar cypress
#

how tf did i mess that up

spring canyon
#

What happened

old wyvern
#

I have sexier loop

topaz bay
#

You were faster cause I was watching overwatch videos

old wyvern
#

@hot hull

topaz bay
#

LMFAO

old wyvern
#

xD

prisma wave
hot hull
#

The fuck is that loop lmao

topaz bay
#

uh oh

prisma wave
#

I've never seen that used before

lunar cypress
#

oh the idiot thing didn't read the new line

old wyvern
#

codechef

#

lol

prisma wave
#

and it makes perfect sense

old wyvern
#

I do a lot of that

#

Easy input logic

topaz bay
#

the infamous down to operator

hot hull
#

That's trippy af

prisma wave
#

that's actually genius

topaz bay
#

No its not

prisma wave
#

well not really

lunar cypress
#

hold on

prisma wave
#

but like

#

i never considered it before

lunar cypress
#

my thing is correct

hot hull
#

Johny

prisma wave
#

Apparently not

hot hull
#

Noone knows cause you're using Clojure

lunar cypress
#

I have literally the semantic equivalent of what bm did

old wyvern
#

xD

prisma wave
#

the website says otherwise

lunar cypress
#

the website has had a couple of problems with clojure in the past

#

I'll try this in my repl

old wyvern
#
    (dotimes [i N]
    (println W))))```
#

how does one read

hot hull
#

Like what the hell even is that..

onyx loom
#

yuck

jovial warren
#

nah wtf

prisma wave
#

clojure is a strange language

jovial warren
#

how do you do that?

hot hull
#

You just loop the input

jovial warren
#

ah okay

hot hull
#

as many times as the number is

jovial warren
#

not really something you can do that efficiently in Python

#

also where are these shortest challenges?

#

or are we not doing those

prisma wave
#

idk

old wyvern
#

2 players left to join

lunar cypress
#

hey guess what it works in the repl

prisma wave
#

maybe just luck

jovial warren
#

I thought it was random chance

old wyvern
#

brdy join

hot hull
#

Now that you're using python the chance is gone

jovial warren
#

I am Yugi

onyx loom
#

man why am i doing this and not practising instead ๐Ÿ˜‚

jovial warren
#

okay I'm in

lunar cypress
#

how does one read
@old wyvern by knowing lisp

hot hull
#

What?

onyx loom
#

hmmm

lunar cypress
#

WHAT

onyx loom
#

so i know what to do

#

i just dont know how thonking

prisma wave
#

this is practice @onyx loom

onyx loom
#

not when u dont know โ˜น๏ธ

prisma wave
#

||if expression + modulo operator||

spring canyon
#

What the heck

light leaf
#

62% gang ๐Ÿ˜Ž

topaz bay
#

wait

#

WHAT

prisma wave
#

how people getting 62%

onyx loom
#

whats modulo

prisma wave
#

tf

topaz bay
#

We all did the same thing

jovial warren
#

probably not the most efficient

hot hull
#

Um what?

spring canyon
#

This challenge was weird

prisma wave
#

@onyx loom %, it returns the remainder after division. eg 3 % 2 is 1

topaz bay
#

its speed?

onyx loom
#

oh cool

#

ty

spring canyon
#

How did @gentle coyote get 100%

jovial warren
#

anyone know how I can make my code better?

gentle coyote
#

i dunno

#

well

#

i know

hot hull
#

That's some kek

prisma wave
#

how is yours right but ours isn't

#

tf

gentle coyote
#

My code is correct

#

But yours too

jovial warren
#

@prisma wave that I don't know

hot hull
#
System.out.println(N % 4 == 0 ? "AAAAAAAAAA!!!": "Ok" );
topaz bay
#

Im.... so lost...

hot hull
#

Am I missing something or?

prisma wave
#

i don't think so

#

we all did the same thing

jovial warren
#

you made sure to print "Ok" if it's not divisible by 4 right?

prisma wave
#

bad website

#

yeah

jovial warren
#

okay

lunar cypress
#

now you're complaining

topaz bay
#

broken

jovial warren
#

and then the exact string it asked for

lunar cypress
#

now that clojure isn't the victim

#

I see

prisma wave
#

clojure is still bad

lunar cypress
#

wrong

old wyvern
#

I probably have the worst way

#

lol

jovial warren
#

oh I came second

#

nice

hot hull
#

I assume it's cause it wasn't able to parse the value since it was too lage?

#

large*

old wyvern
#

use BigInteger

prisma wave
#

@onyx loom you can use modulo to check divisibility (eg if n % 2 ==0 then n is divisible by 2)

#

idk maybe

topaz bay
#

go's int is an alias for int32 though?

prisma wave
#

wait...

spring canyon
#

Right

#

The number is too high

gentle coyote
#

Correct Sxtanna

topaz bay
#

so it shouldnt have been able to parse if its too large as well

prisma wave
#

were we supposed to do nextLong or something?

lunar cypress
#

random test cases

old wyvern
#

BigInt

spring canyon
#

Use BigInteger

lunar cypress
#

so some of you got numbers that were too big

#

for int

#

and some of you did not

old wyvern
#

everyone did

topaz bay
#

Too big for the JVM's int apparently

prisma wave
#

ffs

old wyvern
#

yes

jovial warren
#

how tf did I get 100% though and you guys only got 62%

lunar cypress
#

and I did not care because dynamic language ๐Ÿ˜Ž

prisma wave
#

python numbers are different ig

jovial warren
#

the number was too large?

topaz bay
#

Why doesnt it show the cases?

old wyvern
#

jvm's int is 32, long 64 and bigint idk

#

its big

#

thats all i know

hot hull
#
x=int(input())
if x%4!=0:
    print("Ok")
else:
    print("AAAAAAAAAA!!!")
#

That's bs

jovial warren
#

that's my code lol

prisma wave
#

yeah all the jvm people got 62%

hot hull
#

Ours should be fine as well then..

old wyvern
#

No

lunar cypress
#

no

spring canyon
#

All other languages are 64 bit by default probably

old wyvern
#

@prisma wave

prisma wave
#

except you

topaz bay
#

not go

hot hull
#

Ew

old wyvern
#

boi

lunar cypress
#

the superior jvm lang got 100%

jovial warren
#

python doesn't really give a shit about number size

prisma wave
#

oh yeah

#

i'm dumb

onyx loom
#

@prisma wave ๐Ÿ˜ฆ

hot hull
#

Fuck you java

light leaf
#

imma head out, cu next time guys

prisma wave
#

ok cya

old wyvern
#

Clojure and Java

spring canyon
#

Bye

gentle coyote
#

cya

lunar cypress
#

bye

jovial warren
#

cya

hot hull
#

cya

onyx loom
prisma wave
#

that was lowkey bs

jovial warren
#

I love how I'm the only one here using python lol

#

yeah that was a bit stupid

prisma wave
#

i'm not confident enough with any other language

topaz bay
#

it was high key bs

lunar cypress
#

well gotta read the instructions

old wyvern
#

I could use python but id not know most things

#

so welp

topaz bay
#

youre supposed to be able to trust the input

prisma wave
#

yeah

gentle coyote
#

I love how I'm the only one here using python lol
I love how I'm the only one here using Go

prisma wave
#

they could've at least done nextBigInteger in the template

lunar cypress
#

it said right in the instructions how big the input was going to be

hot hull
#

I mean tbh, you should've known the max int value Sx

old wyvern
#

I love how we have a java gang

hot hull
#

So jokes on you

topaz bay
#

@lunar cypress it generated the code though

prisma wave
#

yeah

hot hull
#

Since you're provided the max number it can be as input

prisma wave
#

you should only need to worry about the logic

topaz bay
#

You shouldnt have to change the generated code

prisma wave
#

not anything else

jovial warren
#

don't think I got in that one

#

๐Ÿ˜ฆ

#

DAMN YOU OPERA!!!!!!!!!!!!!!!!!!!!!!!!!!!

#

or maybe it's just my PC that's slow

topaz bay
#

LOL

prisma wave
#

@topaz bay too fancy

#

wayy too fancy

topaz bay
#

Dude...

#

I made the array first

#

and it failed, because string and char equality

jovial warren
#

I'm a spectator so I can't see

prisma wave
#

rip

topaz bay
#

So I just added the toString

#

cause fuck changing all those quotes

prisma wave
#

gotta go with some good old anti-DRY sometimes

topaz bay
#

I really should have inlined that array too

#

damn...

jovial warren
#

I'm still confused on where tf these shortest challenges are at lol

onyx loom
#

i really shouldve gotten this one

#

damn...

prisma wave
#

probably lol

topaz bay
#

oh matt is here

#

hello matt

jovial warren
#

what was the challenge?

prisma wave
#

where's matt

topaz bay
#

ipsk

prisma wave
#

oh

#

hello matt

onyx loom
#

count how many times a few letters were inputted

old wyvern
#

count dna proteins

gentle coyote
#

Aren't these shortest challenges a little bit unfair?

prisma wave
#

@jovial warren how many A T C and G in a string

ocean quartz
#

Oh shit i forgot i joined

old wyvern
#

A CG T

prisma wave
#

this was time not shortest

gentle coyote
#

Ikr

#

But there are shortest

lunar cypress
#

it doesn't read my output..........

prisma wave
#

Oh yeah true

spring canyon
#

My solution is so bad xd

onyx loom
#

yeah mine too

spring canyon
#

it doesn't read my output..........
Again?

onyx loom
#

let me share my code

gentle coyote
#

System.out.println vs print for example

prisma wave
#

Badjure

jovial warren
#

in python I think I'd just do something like print(input().count())

lunar cypress
ocean quartz
#

How do I leave? I didn't mean to join in xD

prisma wave
#

Just don't join next I guess

onyx loom
#

just close it ig

prisma wave
#

You should join though

#

It's fun

gentle coyote
#

^

jovial warren
#

^

old wyvern
#

submit anything

onyx loom
#

even ive joined ๐Ÿ™ƒ

old wyvern
#

xD

jovial warren
#

just submit matt

ocean quartz
#

I gotta leave in a sec, was just checking in
I know it's fun ;p

prisma wave
#

@spring canyon that's hideous

ocean quartz
#

Oh yeah nice ty

old wyvern
#

s.length() - s.replace("A", "").length()wut/ xD

prisma wave
#

๐Ÿ˜ฌ

old wyvern
#

good move tbh

lunar cypress
#

ok as it turns out there is one particular form that it doesn't like

#

which is doseq

hot hull
#

I've no idea..

prisma wave
#

strange

onyx loom
#

END IT THEN

#

waiting for u frosty ;p

prisma wave
#

@hot hull count the chars in the string

jovial warren
#

so what were those chars again?

onyx loom
#

a g c t

#

PROTEIN

jovial warren
#

as separate letters?

prisma wave
#

yeah

#

DNA

lunar cypress
#

those are not proteins

old wyvern
#

agct

#

they are

prisma wave
#

pretty sure they are

old wyvern
#

^

prisma wave
#

it's the base pairs in dna or smth

old wyvern
#

yup

jovial warren
#
x=input()
print(x.count('a')+x.count('g')+x.count('c')+x.count('t'))
#

in python I think

onyx loom
lunar cypress
#

where does it say that it's a protein? that#d be new to me

onyx loom
#

Proteins are made up of a series of amino acids. Nucleic Acids (RNA and DNA) are made up of a series of nucleotides. The center of an amino acid is the carbon bonded to four different groups. ... A nucleotide is composed of a five-carbon sugar, a nitrogenous base and a phosphate group.

prisma wave
#

oh yeah fair point

onyx loom
#

is nucleotides protien?

hot hull
#

No shit KM

prisma wave
#

dna > RNA > proteins

jovial warren
#

it's Deoxyribonucleic acid @lunar cypress , you should learn about it in science lol

prisma wave
#

iirc

old wyvern
#

DNA is not 2 RNA strands right?

jovial warren
#

no

prisma wave
#

don't think so

old wyvern
#

mhm

onyx loom
#

i did triple science and cant remember shit ๐Ÿ™ƒ

jovial warren
#

RNA is made by a cell as a kinda messaging service I think

prisma wave
old wyvern
#

dna has mrnas to fix shit or something

#

i suck at biology

prisma wave
#

yeah RNA is made to code for different amino acids iirc

jovial warren
#

yeah MRNA = Messenger RNA

prisma wave
#

which then make proteins

old wyvern
#

that i know

#

but the fucntions

#

I remember the diagrams sort of

prisma wave
#

can we go onto a new question

#

too much biology

jovial warren
#

MRNA is used to transport DNA sequences I think

lunar cypress
#

but a nucleine base is not a protein

old wyvern
#

frosty

onyx loom
#

way too much bio

hot hull
#

I give up

prisma wave
#

๐Ÿ˜ฆ ok

hot hull
#

I almost got it

prisma wave
#

rip

hot hull
#

This auto completion is fucking annoying

onyx loom
#

use IJ

jovial warren
#

and please wait for the opera loading time this time @old wyvern ๐Ÿ™‚

onyx loom
#

ctrl shift a

hot hull
#

Like I misstyped String, Strng

#

ANd it didn't even warn me..

onyx loom
#

scratch

old wyvern
#

ok bardy xD

#

soz

prisma wave
#

yeah just write it all in a scratch file or something

#

then copy and paste

onyx loom
#

thats what im doin

old wyvern
#

IntelliBro

prisma wave
#

oi join people

#

these wait times are long

jovial warren
#

okay I'm in

onyx loom
#

it might be cheating a lil but its good xd

old wyvern
#

2 more nibbas

prisma wave
#

nah not cheating

jovial warren
#

opera takes ages lol

onyx loom
#

DONT USE OPERA

jovial warren
#

I'll probably be using waterfox on arch

old wyvern
#

2 more peeeeps

jovial warren
#

I'm moving to arch in a bit

hot hull
#

Next game I'm gonna open IJ KM

old wyvern
#

sxtanna

prisma wave
#

waterfox?

jovial warren
#

it's a fork of firefox @prisma wave and it's super lightweight

gentle coyote
#

@spring canyon join

prisma wave
#

hmm

jovial warren
old wyvern
#

I use intellij when i need a functions name quick xD

onyx loom
#

sx and das

topaz bay
#

Do you guys know who this is?

prisma wave
#

i would use firefox but chrome syncing is just

#

too good

onyx loom
#

should i care who it is

topaz bay
#

Yes

hot hull
#

binary?

onyx loom
#

ahhhh fuck binary

#

cba

hot hull
#

nvm

jovial warren
#

chrome using your CPU and listening in over your microphone is just too good eh?

onyx loom
prisma wave
#

BRUH HOW DO YOU DO A BITWISE NOT IN KOTLIN

lunar cypress
#

wait what

topaz bay
#

inv

prisma wave
#

ty

lunar cypress
#

oh my god

#

i am an absolute moron

onyx loom
#

how are the reverse ones measured?

#

time?

lunar cypress
#

I am actually so dumb

#

this was such an easy win

#

and I typed the wrong function

#

ffs

#

oh nvm

prisma wave
#

wait

lunar cypress
#

had to do more that I missed anyway

prisma wave
#

this is more complex than it seems

hot hull
#

Y'all are bad lmao

jovial warren
#

wait is it complementary?

#

it's the complement right?

lunar cypress
#

yeah I got greedy there and didn't actually think

onyx loom
#

frosty share

hot hull
#

It's legit just replacing 0's with 1's and 1's with 0's

lunar cypress
#

........bro

hot hull
#

kek

jovial warren
#

print(~int(input(),2)) why tf does that not work

lunar cypress
#

figure it out

#

you missed a step

old wyvern
#

weird one

jovial warren
#

~ is the python bitwise operator for complement

old wyvern
#

same frosty

#

xD

hot hull
#

Yugi, nice number

old wyvern
#

xD

onyx loom
#

lmao he waited for it ๐Ÿ‘€

hot hull
#

I'm confused as to how BM hasn't gotten it already..

jovial warren
#

tf am I missing?

prisma wave
#

me too tbh

jovial warren
#

why does that return -1?

old wyvern
#

Wait whats up with the number?

prisma wave
#

it's not as simple as just flipping the bits

jovial warren
#

apparently ~0 = -1

prisma wave
#

yeah it is

#

because 2s compliment

#

it sets the negative bit to 1

hot hull
#

Yugi, have you heard of spaces?

jovial warren
#

ah I need to convert it back to binary?

hot hull
#

UsE tHeM

old wyvern
#

what spaces?

hot hull
#

char c:B.toCharArray()

old wyvern
#

use where?

#

xD

#

oh

#

xD

lunar cypress
#

wtf is that abomination bm

hot hull
#

char c : B.toCharArray()

old wyvern
#

meh

#

xD

onyx loom
#

no bardy. when compiling itll convert to binary for u Kappa

prisma wave
#

idk lmao

#

i couldn't figure it out so

old wyvern
#

loop over chars and replace bm

gentle coyote
#

wtf

old wyvern
#

xD

prisma wave
#

that's what I did in the end

jovial warren
#

print(~int(input(),2)) still can't figure out why that doesn't work

prisma wave
#

but it's not very nice

old wyvern
#

you he fined

#

yea

#

reuw

#

true

lunar cypress
#

@jovial warren think for yourself, you see your output

prisma wave
jovial warren
#

wait this is signed isn't it

old wyvern
#

whaaa

prisma wave
#

yeah

lunar cypress
#

I should've taken my time

hot hull
#

This was the last one for me, pce

onyx loom
#

cya

prisma wave
#

bye

old wyvern
#

ciao

spring canyon
#

@gentle coyote Sorry, I was afk

gentle coyote
#

Don't get it sorry

#

I'm too slow so I just submitted

#

sorry guys

onyx loom
#

oh wow u sound like me

#

haha noob

jovial warren
#

so am I supposed to use OR rather than complement?

old wyvern
#

bardy is left

jovial warren
#

I can't figure this out

old wyvern
#

1s complement

gentle coyote
#

may somebody look over my code and tell me whats wrong holy god

prisma wave
#

bruh that was complex

#

i can't think of a way to do it without string replacing

onyx loom
#

u guys are slow. it only took me 27 seconds

old wyvern
#

If you do without string replace the result may have more characters

spring canyon
#

Did anyone configured the site so you can code in your IDE?

gentle coyote
#
func main() {
    var B string
    fmt.Scan(&B)

    i, _ := strconv.ParseInt(B, 2, 64)
    
    fmt.Println(fmt.Sprintf("%b",^i))
}

And I'm pretty sure that has to work wtf

old wyvern
#

luka

jovial warren
#

fuck it

old wyvern
#

result may have more characters than input

jovial warren
#

I'm done

old wyvern
#

or less in some cases

gentle coyote
#

wait what

jovial warren
#

there has to be a simpler way than string replacement

old wyvern
#

idk man

#

join

jovial warren
#

I am

old wyvern
#

oh opera

jovial warren
#

again, opera loading speeds

old wyvern
#

xD

#

download chrome bro

jovial warren
#

I'm switching to arch linux maybe after this game

onyx loom
#

๐Ÿ™„

jovial warren
#

and not chrome no

onyx loom
#

CHROME

old wyvern
#

why?

jovial warren
#
  1. because it listens to you
  2. because it eats away at my CPU
spring canyon
#

Edge ftw

onyx loom
#

bEcAuSe DaTa

old wyvern
#

because it listens to youok?

onyx loom
#

i wouldnt be surprised if MS listens too

jovial warren
#

chrome listens to your microphone input and runs it through a speech to text engine then uses that data to personalise ads

onyx loom
#

so whats the point

old wyvern
#

because it eats away at my CPUnope

#

everyone joined?

jovial warren
#

it did when I used it before

onyx loom
#

its only RAM it eats

jovial warren
#

RAM then

lunar cypress
#

chrome listens to your microphone input and runs it through a speech to text engine then uses that data to personalise ads
@jovial warren nonsense

jovial warren
#

you want proof?

spring canyon
#

Finally

lunar cypress
#

sure

prisma wave
#

again?

spring canyon
#

Shortest โค๏ธ

lunar cypress
#

lol

jovial warren
lunar cypress
#

you call that "proof"?

#

we gotta talk a little about science, mate

#

I know that video

#

This is not proof in any way

onyx loom
#

alr thats it for me lol

#

im wasting my time

#

it was fun. for the ones i could do xd

prisma wave
#

cya

hot hull
#

Ngl, this was fun. We should do it more often ;)

gentle coyote
#

Did everyone leave or what?

#

Or is everyone AFK?

onyx loom
#

ill start joining them once i sort of know what im doing :)

prisma wave
#

I'm still here

#

But yeah we should do this more

old wyvern
#

dont ask what my code is xD

#

I tried

#

single line stuff

gentle coyote
#

I tried too lol

old wyvern
#

xD

lunar cypress
#

holy shit bm I'm squeezing out the last whitespace here to beat you

old wyvern
#

bruh

prisma wave
#

lmao

old wyvern
#

xD

gentle coyote
#

i used multilines dude

prisma wave
#

nooo

gentle coyote
#

feels embarassing

prisma wave
#

2 characters

old wyvern
#

lol

lunar cypress
#

I could've reduced it by one more

#

I think

old wyvern
#

int main(){string DNA;cin >> DNA; cin.ignore();string res = "";for (int i = 0; i < sizeof(DNA); i++)switch(DNA[i]) {case 'A':cout<<'T';break;case 'T':cout<<'A';break;case 'G':cout<<'C';break;case 'C':cout<<'G';break;}}Pro gamer move

lunar cypress
#

2 more actually

gentle coyote
#

could've you let out the newline johnny?

lunar cypress
#

yeah

hot hull
#

Too many spaces Yugi

old wyvern
#

dammit

#

xD

jovial warren
#
def r(d):
    c={'A':'T','C':'G','G':'C','T':'A'}
    return ''.join([c[b] for b in d[::-1]])
print(r(input()))

tf why doesn't that work?

lunar cypress
#

But I didn't think someone would beat this

#

or if they did by more

#

we shall see

spring canyon
#

Well, Java is just to long xd

old wyvern
#

The base is longer than the top 1

#

for java

#

i tried cpp

#

still bad

#

wlep

lunar cypress
#

and it's really ugly too

old wyvern
#

xD

lunar cypress
#

Imagine not being able to use a map as a function

prisma wave
#

imagine

gentle coyote
#

Imagine using Clojure

jovial warren
#

lol

#

the wait was worth it

prisma wave
#

bruh 72 characters

jovial warren
#

you wanna see this code?

lunar cypress
#

WHAT

prisma wave
#

tf

old wyvern
#

wait really???

lunar cypress
#

actually cheating holy crap

old wyvern
#

send code

#

SHOOWWWW

#

BARDY

jovial warren
#
import string
t=str.maketrans('ATGC','TACG')
print(input().translate(t))
prisma wave
#

that was nasty

old wyvern
#

omg

jovial warren
#

it uses the translator table

#

then the translate method from string

old wyvern
#

pyHacks

jovial warren
#

that took some work

hot hull
#

I'm on mobile

#

Wish me luck

jovial warren
#

may or may not have spent most of the time googling that

#

that method is a joke though

old wyvern
#

bardy join

#

opera

jovial warren
#

I am

#

I'm surprisingly proud of that lol

#

I actually won for once

old wyvern
#

bardy fast

lunar cypress
#

I was sure that I had that one

#

dammit

old wyvern
#

10 sec.

jovial warren
#

I'm trying

old wyvern
#

ri0

#

ri

jovial warren
#

FUCKING OPERA

spring canyon
#

Oh god

#

Sorting algorithms

jovial warren
#

give me a thumbs up if you think that method I used was complete bullshit lol

hot hull
#

Okay ye this ain't possible on mobile

prisma wave
#

๐Ÿ‘

jovial warren
#

I knew python would come in handy at some point lol

lunar cypress
#

man why does clojure's join function have to be in a different namespace

jovial warren
#

lol

lunar cypress
#

I just realised I'm dumb for using list comprehension all the time

#

I could just do (repeatedly n read)

jovial warren
#

lol

prisma wave
#

smh

onyx loom
#

is there something necessarily wrong with using global variables? i understand in bigger programs, but in a smaller program is it all that bad?

spring canyon
#

You can sort Arrays in Java? wow, nice

old wyvern
#

mhm

spring canyon
#

Aaaand I totally forgot about String.join()

old wyvern
#

same

prisma wave
#

@onyx loom not particularly, but it's something that should be avoided whenever you can

gentle coyote
#

im just lost guys

prisma wave
lunar cypress
#

That's not better tbh

prisma wave
#

not really lmao

onyx loom
#

alr ty bm

prisma wave
#

but it's a proof of concept

jovial warren
#

what was the challenge?

prisma wave
#

bit flipping

#

you had to turn like "001" into "110"

jovial warren
#

oh fuck off

gentle coyote
#

alright just shitcoded my stuff again lol

lunar cypress
#

this one was sorting an array of ints @jovial warren

prisma wave
#

which is surprisingly hard with just numbers because of signed integers

jovial warren
#

ah okay

#

sorting by what?

gentle coyote
#

sort.Ints(vals) lol

lunar cypress
#

ascending order

jovial warren
#

ah okay

lunar cypress
#

so nothing special

jovial warren
#

array.sort()

lunar cypress
#

share @gentle coyote

jovial warren
#

was the input an array?

gentle coyote
#

done

#

But don't get eye cancer lol

prisma wave
#

the input was like ```
5
1 2 3 4 5

jovial warren
#

yeah python's not gonna like that

old wyvern
#

did frosty leave?

lunar cypress
#

they're on mobile lmfao

old wyvern
#

welp

prisma wave
#

rip

old wyvern
#

I think he left

#

Okay ye this ain't possible on mobileThis is his last msg here

lunar cypress
#

gimme another array one

prisma wave
#

no

#

noo

lunar cypress
#

I wanna use repeatedly

#

๐Ÿ˜ฆ

jovial warren
#

I swear I should make a language built for these things

#

like a language where keywords are like single letters lol

prisma wave
#

lmao

jovial warren
#

readability=0, compactness=9001

old wyvern
#

everyone ing?

jovial warren
#

yeah think so

prisma wave
#
p(rln().arr().sort().str())```
old wyvern
#

is it me or does the current question make no sense with the example

spring canyon
#

distance is given and needed

#

Uhm

jovial warren
#

also you remember my 72 chars one

#

import string is useless

#

since it's built-in in python 3

#

so it should've actually been 72-13=59

#

lol

floral basin
old wyvern
#

20 * 10 = 120??? what maths is this

onyx loom
#

new pfp thonking1

spring canyon
#

Wtf

#

How

#

I got it somehow

#

But that is the weirdest thing ever

lunar cypress
#

it doesn't recognise the ouput again

#

yay

jovial warren
#

how tf do I get to the third line of an input in python? tf?

spring canyon
#

Idk what this is about, but just multiply it by a random number between 0 and 1

#

Look at the example

#

ยฏ_(ใƒ„)_/ยฏ

jovial warren
#

why can't this just input "20 10" like a normal person

spring canyon
#

Not totally random, but it makes no sense

#

I think

old wyvern
#

wow

#

found it

#

time is in diff unit btw

lunar cypress
#

I don't get this

#

oh

#

time is minutes

jovial warren
#

wait wtf

spring canyon
#

Well, I thought that this is Fastest lol

jovial warren
#

20*10=120?

lunar cypress
#

no lol

onyx loom
#

???????????

distant sun
#

๐Ÿ˜‚

old wyvern
#

this is shortest

#

20 * 6 = 120

#

i.e. f(T) * x = 6

#

10x = 6

#

x = 0.6

#

T = f(T) * 0.6

#

x = S * f(T) * 0.6