#dev-general

1 messages ยท Page 90 of 1

hot hull
#

But actually figuring out what they mean is the hard part

old wyvern
#

what was the question tho?

prisma wave
#

yeah it usually is

hot hull
#

I can't see it anymore so ask @jovial warren

jovial warren
#

it was basically calculate f(x) where f(x)=a*x+b

hot hull
#

Why is u not done then yet smh

jovial warren
#

because I'm trash

onyx loom
#

๐Ÿค”

hot hull
#

You legit just told yourself the thing you needed smgh

#

smh*

old wyvern
#

4 mins? was this shortest?

jovial warren
#

finally done

old wyvern
#

nvm no chars

hot hull
#

Nah it was quickest lmao

old wyvern
#

I mean the round type

jovial warren
#

yeah it was quickest

old wyvern
#

oh

#

welp

quiet depot
#

girls

#

give me the link

jovial warren
#

alright getting another

hot hull
#

girls

old wyvern
#

1 more layer clashin

prisma wave
#

I can't join ๐Ÿ˜”

old wyvern
#

girlsgei

hot hull
#

why not KM

prisma wave
#

I gotta help cook dinner

jovial warren
#

lol

prisma wave
#

Maybe I'll try on mobile

hot hull
#

Don't

onyx loom
#

what are u, a woman?

hot hull
#

It's imposible

quiet depot
#

excuse me maam it is 11:56 pm

#

bit late for dinner

obtuse gale
#

11.56

jovial warren
#

apparently waterfox isn't supported by this website lol

obtuse gale
#

pfff

jovial warren
#

okay everyone ready or we still waiting?

old wyvern
#

I ussualy have dinner at 3am. seems relatively soon

#

xD

onyx loom
#

and thats why google chrome >>>

hot hull
#

OH I see we got Matt :>

obtuse gale
#

idk how this works btw lol

jovial warren
#

waterfox is lightning fast though

quiet depot
#

so are these questions ez?

ocean quartz
#

Gonna try it, i'm pretty bad at this though

quiet depot
#

or super hard

#

or what

onyx loom
#

easy

prisma wave
#

A mix

old wyvern
#

questions are ussually easy

quiet depot
#

i've never done something like this before

old wyvern
#

sometimes weird

obtuse gale
#

How does this even work?

hot hull
#

Well the instructions are usualy kek

quiet depot
jovial warren
#

they're sometimes really simple, and sometimes you'll stare at it for like 10 minutes straight wondering wtf is going on @quiet depot

old wyvern
#

there are 3 types

onyx loom
#

if u know what ur doing, which u do, they shouldn't be too hard

prisma wave
#

1 sec

obtuse gale
#

ok so im fucked

prisma wave
#

I can join 1

#

oh has it started

pallid gale
#

no im trying to leave

quiet depot
#

10 secs left

#

quick girls

jovial warren
#

lol

quiet depot
#

omg brister got in

#

last second

prisma wave
#

Literally 0:00 lmao

obtuse gale
#

oh god it seems so simple yet i have no clue without making this like 500000 lines

onyx loom
#

dewit

old wyvern
#

xD

hot hull
#

Yugi you're an asshole

old wyvern
#

25 chars

#

lol

hot hull
#

using python smh

jovial warren
#

same

old wyvern
#

Ey

jovial warren
#

25 chars

#

||print(input().swapcase())||that's literally it lol

old wyvern
#

xD

#

ikr

obtuse gale
#

bruh

#

am i gonna hold everyone up lol

jovial warren
#

python was built for this kinda stuff

hot hull
#

Is there even a smexy java function for this?

jovial warren
#
public static String reverseCase(String text) {
    char[] chars = text.toCharArray();
    for (int i = 0; i < chars.length; i++) {
        char c = chars[i];
        if (Character.isUpperCase(c)) chars[i] = Character.toLowerCase(c);
        else if (Character.isLowerCase(c)) chars[i] = Character.toUpperCase(c);
    }
    return new String(chars);
}

that's it in Java lol

#

HAHAHAHAHA

prisma wave
#

yikes

jovial warren
#

Is there even a smexy java function for this?
no there isn't lol

old wyvern
#

StringUtils

obtuse gale
#

bruh im failing hard

old wyvern
#

if you can use that here, you have swapcase

prisma wave
#

oh no

#

It's not looking good for kotlin gang

old wyvern
#

StringUtils.swapCase("BrUh")

jovial warren
#

I doubt it unless it's a built-in

#

which it isn't

old wyvern
#

apache commons

jovial warren
#

not a built-in

#

it may have been added though

#

ya never know

#

but 25 chars in python is just a joke

old wyvern
#

BM share code

jovial warren
#

^^^

obtuse gale
#

oh god

#

you guys boutta bully my code

jovial warren
#

you should look at mine and Yugi's

obtuse gale
#

lmao 551 characters

onyx loom
#

200 chars incoming for aj

#

OH GOD

jovial warren
#

also 551 chars @obtuse gale ? did you forget to remove the comments?

obtuse gale
#

yes lol

onyx loom
#

oh right

old wyvern
#

SHow coDe peoplee

#

xD

onyx loom
#

yeah so i was prob about right :)

obtuse gale
#

ill be bullied

old wyvern
#

no you wont

jovial warren
#

show code

onyx loom
#

do it

obtuse gale
#

I will if BM will

#

you go first tho

jovial warren
#

@prisma wave show code

onyx loom
#

u can only improve by sharing code

obtuse gale
#

kk bully me now

jovial warren
#

that isn't actually that bad tbh

#

wouldn't've used a StringBuilder though

#

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

obtuse gale
#

Its so weird not doing it in an IDE

hot hull
#

Check my code

obtuse gale
#

AHHh

hot hull
#

I win when it comes to number of lines :))

ocean quartz
#

Took me way too long damn

old wyvern
#

I already did that yesterday on cpp xD

obtuse gale
#

lol who saw that coming

old wyvern
#

one line code

obtuse gale
#

me with the most characters

old wyvern
#

I win when it comes to number of lines :))No you dont xD

hot hull
#

Could've atleast gotten 42069

old wyvern
#

You draw with python

#

xD

ocean quartz
#

python is like cheating

old wyvern
#

xD

#

I mean use whatever language gives u the advantage for the problem at hand

hot hull
#

That's why using mixed languages is kek when it comes to these kind of questions

jovial warren
#

once piggy gets done I'll launch a new one

hot hull
#

Piggy fell asleep?

old wyvern
#

what does kek mean? I thought it was a weird way to say lol

#

@hot hull

hot hull
#

It's a kek way of saying lol

old wyvern
#

xD

obtuse gale
#

wait so is it based off characters?

hot hull
#

yes Aj

old wyvern
#

yes

obtuse gale
#

Like should we be naming things like s and stuff

#

oh

hot hull
#

Let's see if piggy can beat me

old wyvern
#

yes a

#

aj

obtuse gale
#

Im the true winner here

#

most characters

old wyvern
#

there are 3 types of rounds

hot hull
#

@quiet depot You alive?

old wyvern
#

Fastest, Shortest and Reverse

#

Fastest = timed + proper questions
Reverse = timed + sample input and output given but no question
Shortest = least char count

quiet depot
#

yes

#

ii'm trying to figure out my solution

old wyvern
#

alrighty

quiet depot
#

lol am i the only one left

obtuse gale
#

Matt show your code pls

jovial warren
#

yeah piggy

old wyvern
#

2 mins left

#

40 seconds left

onyx loom
#

@obtuse gale Ctrl+shift+a and search for scratch in IJ

#

just opens a scratch file then u can copy and paste back into the site

obtuse gale
#

oo

old wyvern
#

ctrl+alt+shift+insert

quiet depot
#

fak

onyx loom
#

or that ye

quiet depot
#
System.out.println((java.nio.CharBuffer.wrap(chars).chars().mapToObj(i -> Character.isUpperCase(chars[i]) ? Character.toLowerCase(chars[i]) : Character.toUpperCase(chars[i])).map(c -> "" + c).collect(Collectors.joining())));```
quiet depot
#

that was where i got up to

old wyvern
#

welp

jovial warren
#

rip piggy

hot hull
#

damn

old wyvern
#

join join

#

@ocean quartz new round starting

obtuse gale
#

Does it matter my scratch file is .kts instead of .kt lol?

onyx loom
#

no

jovial warren
#

the people with the fastest browsers will get in first lol

onyx loom
#

not really

hot hull
#

Kali, how do I run the scratch file?

jovial warren
#

or should I say the fastest internet

#

waterfox is so fast it's just a joke lol

quiet depot
#

i'll try go faster this round guys

jovial warren
#

anyone else still joining?

obtuse gale
#

Is there no way in this game so theres like multiple rounds per link?

quiet depot
#

would've finished way earlier if Arrays.stream supported stupid character arrays

old wyvern
#

Is there no way in this game so theres like multiple rounds per link?bot

hot hull
#

Aj nope

obtuse gale
#

So you only have to send out one link, then its like best of 5 or something

#

oof

hot hull
#

Yugi, doesn't seem like there's an api for it

#

Could be blind tho

old wyvern
#

who needs a api

#

๐Ÿ’€

obtuse gale
#

wait so

#

how tf does this work lol

hot hull
#

Cheeze

quiet depot
#

i've got no clue lol

obtuse gale
#

how does this mode work lol

hot hull
#

Piggy..

ocean quartz
#

This one is odd

onyx loom
#

idk frosty i just usually paste it into the site

hot hull
#

Matt look at it again

onyx loom
#

just check the code is right and stuff

old wyvern
#

this was shit

#

I over thought it

#

xD

hot hull
#

lol Yugi

old wyvern
#

I thought it was Sum - first element

jovial warren
#

wait how am I supposed to loop through the rest of the input lines?

old wyvern
#

xD

hot hull
#

Yugi don't spoil

#

Let them suffer

old wyvern
#

oke

#

xD

jovial warren
#

I know what it's doing I just can't get the input lines

hot hull
#

Kali, I could've swore KM was running it somehow yesterday

obtuse gale
#

HOW DOES THIS MODE WORK

#

AHHH

hot hull
#

Just solve it

old wyvern
#

get output from input?

obtuse gale
#

oh lol

onyx loom
#

hm?

obtuse gale
#

is this like one of those shitty math questions they have

#

liek "Find the pattern"

old wyvern
#

nope

#

kinda

#

yes pattern finding

obtuse gale
#

er

#

its safe to say i havent written one line

old wyvern
#

try to find by doing what can you reach the output

hot hull
#

Don't overcomplicate

old wyvern
#

^ its a very simple one

#

some

obtuse gale
#

So the number on the right is the output lol

old wyvern
#

yes

obtuse gale
#

and on the left is the input

old wyvern
#

yup

obtuse gale
#

ok i still have no clue how to do this lol

old wyvern
#

Try thinking of diff operations on the input?

jovial warren
#

nah I can't do this

obtuse gale
#

bruh

jovial warren
#

that's bullshit

old wyvern
#

what happened bardy?

obtuse gale
#

wtf is this

jovial warren
#

look at my code

#

I can't get input as lines

#

idk how to loop over until there's no lines left

old wyvern
#

bro

#

first line

#

is the count of input

obtuse gale
#

o

jovial warren
#

shut up

old wyvern
#

xD

obtuse gale
#

bruh

#

hol up

jovial warren
#

I thought it was just add up all the values and take that total away from the first value

ocean quartz
#

This one was ass, literally overcomplicated it by a lot

obtuse gale
#

BRUH

#

i worked it out i think lol

old wyvern
#

I thought it was just add up all the values and take that total away from the first valueYea I thought that first too

obtuse gale
#

still no clue how to do it but

hot hull
#

Just print it out

#

and press submit

old wyvern
#

But then realized I didnt have to add it in the first place

#

then realized it was amount of input

#

xD

jovial warren
#
x=input()
print(input() for y in range(1,x-1))
```?
onyx loom
jovial warren
#

no that isn't going to work

#

hmm...

old wyvern
#
3
5
2
4

Here 3 means there will be 3 more input values and res would be 11

jovial warren
#

so

x=int(input())
print(input()+input() for a in range(0,x))
```?
#

no

#

wtf?

#

I actually don't know how to do this

#

python inputs work completely different to something like Java

hot hull
#

Aj ded?

obtuse gale
#

AHH

#

no

jovial warren
#

wait hold up

obtuse gale
#
Failure
Found: 4....
Expected: 6``` REEE
jovial warren
#

x, y = input().split() actually WORKS?

obtuse gale
#

how tf do i bring up the console on a scratch file

#

like so i can type number

#

20 SECS

hot hull
#

Wondering the same thing

obtuse gale
#

AHHH

#

fuckfuckfuckfuckfuckfuckj

#

mission failed

jovial warren
#

oh right you're supposed to use fileinput

#

actually no

hot hull
#

new one yugi

old wyvern
#
x=int(input())
b = 0;
for a in range(0,x):
    x= x+b;
print(b)```
@jovial warren
jovial warren
#

well I'm an idiot

#

everyone in?

old wyvern
#

theres probably a better way to do that btw

#

did bm leave?

hot hull
#

He's cooking dinner

old wyvern
#

ah

jovial warren
#

more accurate then

old wyvern
#

I think everyone is in

hot hull
#

start bardy

old wyvern
#

ayy

obtuse gale
#

oh god

#

this is like textbook questions in maths

jovial warren
#

that was easy

#

||just take both values and run min on them||

old wyvern
#

thats some of the easiest questions so far

ocean quartz
#

This was an easy one

old wyvern
#

mhm

jovial warren
#

why didn't you just run Math.min(x,y) Yugi? xD

hot hull
#

I'm dumb

old wyvern
#

meh

old wyvern
#

no diff

obtuse gale
#

I dont even know what min does lol

#

you think im that smart?

old wyvern
#

min returns the minimum of the 2

jovial warren
#

takes the min value of two values

obtuse gale
#

o

#

fuckn nerds

jovial warren
#

does what it says on the tin lol

old wyvern
#

ternary was smaller to type out

jovial warren
#

true

hot hull
#

When you rarely use any of these methods :c

quiet depot
#

stupid fucking game

ocean quartz
#

Oh wow actually was the first

quiet depot
#

it wanted lowercase x, not capital x

#

tip for those who are still working on it

#

modulus

hot hull
#

Fucking shitty template

obtuse gale
#

I feel i might be doing things the hardest way possible

hot hull
#

I spent 1min trynna see where that extra line is coming from..

#

And it was the default print out

obtuse gale
#

bruh

#

I feel i did this a weird wa y

jovial warren
#

python's duck typing gets annoying sometimes lol

obtuse gale
#

oh yeah

#

I did this a really weird waY

#

I just added in a step for no reason

hot hull
#

share code aj

obtuse gale
#

lol i literally added everything to a list for no reason

old wyvern
#

im so confused with why this doesnt work xD

hot hull
#

Remove the last printout Yugi

jovial warren
#

also you could probably compress that if else in to a ternary in Java

ocean quartz
#

Oh yeah AJ you had 2 loops to do the job of one xD

obtuse gale
#

yea lol

#

2.41AM lol

#

lets go

quiet depot
#

@jovial warren forced duck typing in a languages design is always a huge mistake.

old wyvern
#

oh kill me

#

I was using i instead if n

#

xD

jovial warren
#

@quiet depot it isn't in the shortest challenges lol

old wyvern
#

dammit

jovial warren
#

python was designed for the shortest challenges

quiet depot
#

bardy, keep in mind, duck typing is a part of static typing

#

python just unnecessarily restricts you to duck typing only

jovial warren
#

yeah

#

it's good for compressing code though

obtuse gale
#

oof

#

leaving comments in matt

old wyvern
#

almost bard

#

xD

ocean quartz
#

Didn't know this one had character criteria

jovial warren
#

sneaky

quiet depot
#

neither

#

i finished first

#

came fifth

jovial warren
#

would've had you if I'd put my print statement on the same line as my if

quiet depot
#

makes sense

ocean quartz
#

Yeah

jovial warren
#

didn't know you could do that in python though

quiet depot
#

does this have lua?

jovial warren
#

probably

ocean quartz
#

I'll be back a bit later

topaz bay
#

lua is trash

old wyvern
#

Didn't know this one had character criteriait says on top of problem statement

jovial warren
#

also Yugi you should try using the quote feature discord has lol

#

unless for some reason that's how discord is formatting your quotes

fleet glade
#

Could someone give me a hand setting up MySQL on my server? I am running on a Linux dedicated server and am struggling. (this is my first time using Linux)

hot hull
#

Nice atleast I wasn't last

ocean quartz
#

Last one for me

jovial warren
#

alright

obtuse gale
#

o

jovial warren
#

boom

hot hull
#

I don't get the point of this

jovial warren
#

there is no point

#

it's just for fun

ocean quartz
#

My solution is dumb

jovial warren
#

as long as it works it's fine

old wyvern
#

^

jovial warren
#

bit like my monstrosity

old wyvern
#

wha

obtuse gale
#

am failing hard

quiet depot
#

pro tip

#

the solution requires coding

jovial warren
#

yeah no shit sherlock

#

xD

quiet depot
#

damn frosty with the 11%

jovial warren
#

frosty what did you do lol

obtuse gale
#

oh god

#

im failing

hot hull
#

Can someone humour me with what the fuck you're supposed to do?

ocean quartz
#

Repeat the number N, N amount of times

quiet depot
#

share ur code

old wyvern
#

print a isosceles right triangle of the input value of side length of input

obtuse gale
#

my strategy works best

old wyvern
#

xD

ocean quartz
#

Aight i'll do one more xD

old wyvern
#

xD

#

Theres never a last one

#

yesterday w eplayed till 3 am

hot hull
#

start Bardy

jovial warren
#

I did

ocean quartz
#

Ugh another reverse one

hot hull
#

r3kt

old wyvern
#

how

#

did

#

wha

hot hull
#

You're overcomplicating again

#

Look at the numbers

jovial warren
#

we are looking at the numbers :/

old wyvern
#

got it

#

that was shit again

hot hull
#

Nah

#

You've just got too many braincells for this

old wyvern
#

๐Ÿ‘€ ๐Ÿšฌ

hot hull
#

Piggy, ew Imagine having to use Math.floor

quiet depot
#

imagine being a noob coder

jovial warren
#

easy

old wyvern
#

share bard

hot hull
#

Piggy :c

ocean quartz
#

Oof only me left now

jovial warren
#

I knew that was what it was doing the whole time I just didn't know how to do that in python lol

obtuse gale
#

wait....

#

frcsty...

#

I feel I may have overcomplicated it lol

quiet depot
#

frosty i think we've been coding the same amount of time u kno

#

when did u start?

hot hull
#

Last year

#

Well, a litle over a year ago

jovial warren
#

||basically you half the value, floor it, and add it to the original||

quiet depot
#

never ever experimented with it before that?

hot hull
#

No

old wyvern
#

when did you start piggy?

jovial warren
#

when did all of us start?

quiet depot
#

i started experimenting with it in 2014

#

properly started the java train in like 2018

#

or 2017

#

probs 2018

jovial warren
#

I didn't even start playing Minecraft on the PC until 2016 lol

hot hull
#

I started late

quiet depot
#

i started playing mc pc 2011

jovial warren
#

I started a couple of years ago

#

i started playing mc pc 2011
I was playing the xbox 360 edition until I got my PC in November 2016 lol

#

but I'm 15 so that was just kinda what everyone played back then

hot hull
#

Piggy is 117 so that's late af for him

old wyvern
#

Java or any language in general?

jovial warren
#

lol

#

Java or any language in general?
me?

quiet depot
#

any language

jovial warren
#

any language?

old wyvern
#

2010ish I think

#

vb

hot hull
#

Damn

jovial warren
#

well, I started with HTML in 2016 but that doesn't count lol

quiet depot
#

2010 and man doesn't even have the developer role

#

sure it counts

hot hull
#

lol

jovial warren
#

and I didn't know anything about HTML anyway

quiet depot
#

html is still a programming language

old wyvern
#

lol

jovial warren
#

I was just copying and pasting

ocean quartz
#

Ugh this reverse ones

jovial warren
#

pretending to my school like I knew what I was doing lol

hot hull
#

Everyone usually overcomplicates

#

That's why they're so hard :p

obtuse gale
#

3.08AM

#

nice

ocean quartz
#

The website didn't recognize floor from Kotlin, had to use Math.floor

old wyvern
#

2010 and man doesn't even have the developer rolea dev role here makes a dev?

#

๐Ÿ’€

quiet depot
#

yes

obtuse gale
#

yea lol i had that as well matt

old wyvern
#

weird

#

ok

quiet depot
#

dev role in here is the equivalent of a doctorate in software engineering

old wyvern
#

ofc xD

jovial warren
#

I was supposed to be rewriting a specific part of the old school website, took me at least two or three years and I didn't even finish it lol

onyx loom
#

PhD

obtuse gale
#

wait matt

#

import kotlin.math.floor i didnt import this did you lol?

jovial warren
#

dev role in here is the equivalent of a doctorate in software engineering
you wish

quiet depot
#

i'm serious bruh

ocean quartz
#

Nah, it didn't recognize it

jovial warren
#

I can't get dev role yet since I don't have two active projects lol

obtuse gale
#

lol this sounds like meths

old wyvern
#

test

jovial warren
#

Failure
Found: 0 2 4 6 8
Expected: Nothing

#

sorry what?

#

and if I print nothing it's the other way around

hot hull
#

Same lol

jovial warren
#

now it's: Found: "0 2 4 6 8" Expected: "0 2 4 6 8"

#

okay this must be broken

hot hull
#

Nah it works

#

It's just icky af

quiet depot
#

aight im off

#

gn people

frail glade
#

Gnite

jovial warren
#
x,y=input().split()
for i in range(0,int(x)*2-2,int(y)):print(i,end=' ')
print(i)

that gives me what I said above

#

gn piggy

frail glade
#

Oh did the server thing at least work

quiet depot
#

yeah i was kinda stupid about it

frail glade
#

Did you push changes so I can continue to work on it?

quiet depot
#

the problem was that the server implementation wasn't actually getting it's handle instance

#

yea

#

it's not on ur fork

frail glade
#

I'll pull yours

quiet depot
#

I need to think of a way to centralise the process

#

it's complicated af

frail glade
#

Mhmm

quiet depot
#

cuz there's two types of keyable

#

there's things like Server, which are singleton

#

then there's keyables like Player, which have to be frequently recreated

#

the problem is figuring out how to consistently cache the key functions for each type of keyable

jovial warren
#

wait the step arg can't be 0?

#

that's annoying

quiet depot
#

how tf does codin know my discord

frail glade
#

Lmao what

quiet depot
#

i'm so confused

topaz bay
#

You logged in with discord

quiet depot
#

no

#

I logged in with github

topaz bay
#

are you sure?

jovial warren
#

maybe your discord account is on your github profile?

quiet depot
#

it's taking my discord from my gh org

prisma wave
#

Perhaps it's your GitHub profile name

topaz bay
#

it can only read your email though?

quiet depot
#

it's public information

jovial warren
#

there ya are

quiet depot
#

kinda funny

jovial warren
#

someone's probably gone on there and found that then

topaz bay
#

how did you get to that screen?

old wyvern
#

bardy share

jovial warren
#

look at it lol

quiet depot
#

it just popped up when i went to my profile

#

no

#

i lied

#

click "rate my company"

jovial warren
#

where?

hot hull
#

I give up

quiet depot
jovial warren
#

ah okay

topaz bay
#

dont even have that

hot hull
topaz bay
hot hull
#

Like, what should it be so it recognises the 3rd case

topaz bay
#

why tf are you using the concat method

#

just use +

hot hull
#

Shut uop

jovial warren
#

can't you just do result += " " or do strings not work like that lol

topaz bay
#

yes

#

yes you can

old wyvern
#

what are all those conditions for

#

o.o

hot hull
#

I'm dumb okay

topaz bay
#

very

ocean quartz
#

Same

jovial warren
#

@topaz bay you gonna join us?

topaz bay
#

absolutely not

jovial warren
#

alright

#

everyone in?

old wyvern
#

yup

hot hull
#

Goddamn weeb @topaz bay

quiet depot
ocean quartz
#

This one is so confusing what

quiet depot
#

why the frick is the border not even even

#

what the hek

jovial warren
#

okay that challenge was literally simple

hot hull
#

That's a scam

#

I got 3 correct ;c

ocean quartz
#

I'm having trouble is with the english here xD
I don't understand what it's supposed to do

jovial warren
#

@hot hull all you gotta do is check if x is in the bounds and then print the category

old wyvern
#

@ocean quartz print category when X is between the given interval F and T

hot hull
#

...

jovial warren
#

||if (X >= F && X <= T) System.out.println(category);||

onyx loom
#

omg why u giving the answer

#

thats better

ocean quartz
#

Wow..

#

Literally if (X in F..T) println(category)

old wyvern
#

xD welp

#

@jovial warren next roun

hot hull
#

That's it for me boiz

old wyvern
#

its never it

#

theres always more

obtuse gale
#

ill join

#

f i can

onyx loom
#

jesus aj

obtuse gale
#

fuck

#

gotta sign in

hot hull
#

Not rn tho, cause Imma yeet myself out the window soon

old wyvern
#

join in aj

onyx loom
#

what time is it for u

obtuse gale
#

3.30AM

old wyvern
#

Not rn tho, cause Imma yeet myself out the window soon๐Ÿ‡พ ๐Ÿ‡ช ๐Ÿ‡ช ๐Ÿ‡น

obtuse gale
#

im in bed now tho

hot hull
#

What do you tell yourself when you're standing near a cliff?
:yeet:

jovial warren
#

anyone else?

prisma wave
#

I'll join in about half an hour

#

Eating right now

old wyvern
#

alrighty

ocean quartz
#

Dumb looking code lmao

#

I need to pay more attention to the character criteria xD

obtuse gale
#

Its 3.37AM

old wyvern
#

xD yea I missed that a lot of times yesterday

ocean quartz
#

Aight i'm actually gonna head out now xD

old wyvern
#

one more? xD

ocean quartz
#

Nah xD

obtuse gale
#

Didnt you say that lik

onyx loom
#

1 more

old wyvern
#

xD oke ciao man

obtuse gale
#

before i said i was gonna leave

ocean quartz
#

Shhh

old wyvern
#

xD

#

bardy taking his sweet time o.o

onyx loom
#

i feel like if u were to do this in a public lobby people would just take the piss and submit within the last second of the timer

jovial warren
#

it keeps telling me fucking unexpected EOF

old wyvern
#

xD

jovial warren
#

nah fuck this

old wyvern
#

next round bois

jovial warren
#

oh you're fucking kidding me

ocean quartz
jovial warren
#

nah that last round was actual bullshit

old wyvern
#

Join mattt

ocean quartz
#

Nah, i need to work on a few things xD

old wyvern
#

xD welp rip

#

bardy start

jovial warren
#

alright

#

okay that one was easy

#

unnecessary cast Yugi

old wyvern
#

there was one more way tho

#

%10

#

next round

old wyvern
#

aj join @obtuse gale

obtuse gale
#

this is my final round

old wyvern
#

alrighty

obtuse gale
#

its 3.45AM

old wyvern
#

bard start

#

lol

jovial warren
#

me first

old wyvern
#

dammit

jovial warren
#

||math.factorial(n)|| ez

obtuse gale
#

this time its the final

old wyvern
#

right xD

onyx loom
#

final he said

#

why do i doubt that

prisma wave
#

If it changes anything I'll be on in like 5 minutes

#

The life of the party is coming

old wyvern
#

xD

obtuse gale
#
fun main(args : Array<String>) {
    val input = Scanner(System.`in`)
    val n = input.nextInt()
    var round = 0
    var str = ""
    while(round < n){
    str += n
    println(str)
    round++
}
}``` lol i feel like ive overcomplicated smthn
old wyvern
#

||for a in range(1,n+1):
print(a*str(n))
||xD

jovial warren
#

that took me way too long

onyx loom
#

i hate the way the website automatically adds args in the function when theyre not needed smh

old wyvern
#

anyone else joining?

prisma wave
#

YO

jovial warren
#

ayy @prisma wave

obtuse gale
#

this is it.

#

no more

old wyvern
#

ayyyyy

onyx loom
#

๐Ÿ˜‚๐Ÿ˜‚

old wyvern
#

Boi is hereee

obtuse gale
#

its 3.52 am

old wyvern
#

xD

prisma wave
#

@obtuse gale you are mistaken

#

y

#

you're doing at LEAST 10 more

brave minnow
#

@prisma wave I didn't have much time to do it but I made it and here's the result (working) what do you think ? :p

        URLClassLoader classLoader = new URLClassLoader(new URL[]{mliUrl});
        InputStream customConfig = classLoader.getResourceAsStream("default.yml");
        File customConfigFile = new File("plugins/PlaceholderAPI/mli", "customConfig.yml");
        try {
            customConfigFile.mkdirs();
            customConfigFile.createNewFile();
            Files.copy(customConfig, Paths.get(customConfigFile.getPath()), StandardCopyOption.REPLACE_EXISTING);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }```
obtuse gale
#

๐Ÿค”

lunar cypress
#

You people are playing again, I see

obtuse gale
#

wtf is this

prisma wave
#

@brave minnow iirc you don't need to make the file, and you probably shouldn't have REPLACE_EXISTING. but otherwise it's lovely (apart from being a massive hack)

onyx loom
#

read it

obtuse gale
#

What is this

brave minnow
#

it's creating a default file because PAPI or spigot is messing with methods for what I want

#

@prisma wave it returns errors if I don't mkdirs() and createNewFile () D:

prisma wave
#

oh ok

obtuse gale
#

wtf is this bullshit lol

#

this is maths

brave minnow
#

and REPLACE_EXISTING is to be sure it is written in file ^^

prisma wave
#

REPLACE_EXISTING will overwrite any existing files

#

if someone modifies the config, REPLACE_EXISTING will overwrite the changes

brave minnow
#

yep that's exactly what I want as it is creating only if no files are existing

obtuse gale
#

Just so you guys know

#

I have 0 clue waht any of the numbers on the side are for

jovial warren
#

no fucking clue whatsoever

old wyvern
#

itn (\x1 + x2) /2

#

but

#

the precision is weird

obtuse gale
#

Lol what

#

My code makes far more sense

old wyvern
#

(x1+x2)/2 space (y1 + y2)/2

#

I got the answer but precision issues

jovial warren
#

oh ofc it is

#

yeah that confused me

#

the precision confused me

#

since if it's .5 it doesn't round

prisma wave
#

EZ

#

mine is hideous

#

@brave minnow are you misunderstanding me? If the user makes changes to customConfig.yml, REPLACE_EXISTING will remove those changes

jovial warren
#

toIntPerhaps lol

#

"perhaps"

prisma wave
#

I couldn't think what to call it lmao

#

3.0 => 3, 3.1 => 3.1

jovial warren
#

fair enough

prisma wave
#

perhaps it's an int, perhaps not

jovial warren
#

fair enough

old wyvern
#

mine is hideousMine is more hideos

#

hideous

prisma wave
#

share code

#

and we'll find out

old wyvern
#

done xD

brave minnow
#

@prisma wave you misunderstood either I'm copying this ONLY if the there is NO files in mli dir ^^

prisma wave
#

oh

old wyvern
#
    a = "{:.1f}".format(a)
else:
    a = str(int(a))
if (y_1 + y_2) % 2 != 0:
    b = "{:.1f}".format(b)
else:
    b = str(int(b))```
#

xD

prisma wave
#

then you shouldn't need REPLACE_EXISTING if you know there isn't an existing one

#

that's disgusting

old wyvern
#

those are the only cases when dealing with /2

brave minnow
#

:x

old wyvern
#

welp

prisma wave
#

another?

old wyvern
#

yes

#

@jovial warren @obtuse gale

prisma wave
#

is it just us?

jovial warren
#

think so

old wyvern
#

welp\

#

u gone?

prisma wave
#

๐Ÿ˜ฆ

old wyvern
#

there we go

#

i think aj left

prisma wave
#

this one is really confusing

#

maybe just me

jovial warren
#

nah it ain't just you mate

prisma wave
#

?

#

oh good

#

oh wait

hot hull
#

BM, earlier you said you didn't watch GOT yet, did you watch 100?

brave minnow
#

@prisma wave not working without replace existing ๐Ÿคท

prisma wave
#

@hot hull i don't think so

hot hull
#

Damn, you're missing out on a lot

prisma wave
#

@brave minnow hm, strange. keep it then i guess

#

@hot hull wdym by "100"?

hot hull
#

A series called The 100

jovial warren
#

ez

prisma wave
#

ah

#

never heard of it lol

hot hull
prisma wave
#

lmao

hot hull
#

If you have time, I recommend giving it a watch sometime

prisma wave
#

looks pretty good

#

i'll add it to my list

old wyvern
#

km

#

join

#

fros

hot hull
#

There's a season where it gets slightly boring, but then gets good again

old wyvern
#

Have you watched upload?

hot hull
#

link me it

#

The fuck is this

prisma wave
#

pretty simple actually lol

hot hull
#

No clue what I'm looking at tho

prisma wave
#

||the capitalization is important||

old wyvern
#

the case seems simple

jovial warren
#

okay yeah that was ez

old wyvern
jovial warren
#

cheers for the hint BM ๐Ÿ™‚

prisma wave
#

np lol

jovial warren
#

still took some googling though

#

had to find out how to ||count the amount of lowercase characters in a string|| lol

prisma wave
#

imagine not using kotlin's ||Character.isLowerCase()||

jovial warren
#

||print(sum(1 for c in s if c.islower()))|| that's it in python lol

old wyvern
#

imagine not using kotlin's Character.isLowerCase()Thats from java

prisma wave
#

nooo spoilers

old wyvern
#

o.o

#

xD

prisma wave
#

but in kotlin you can do ||c.isLowerCase()|| without a static method

old wyvern
#

ah

prisma wave
#

||S.toCharArray().filter{it.isLowerCase()}.count()||

hot hull
#

I'm confused as to why Character.isUpperCase and inverting it, printed out 7 instead of 4 thonking

old wyvern
#

you cant stream chars in java

lunar cypress
#

you can

prisma wave
#

that's not a stream

#

but you can with chars()

old wyvern
#

I meant in java

prisma wave
#

oh yeah

old wyvern
#

yea but then its a intstream

prisma wave
#

true

hot hull
#

Yugi, I might watch that

old wyvern
#

its lit frost

#

its about a murdered hacker

#

who gets uploaded

frail glade
#

What

old wyvern
#

into a vr afterlife

hot hull
#

Also, only 3 more weeks of this shitty as school left ๐Ÿ˜„

frail glade
#

Nice Frosty

hot hull
#

Don't spoil

#

YOu goddamn nonce

prisma wave
#
s.chars().filter(c -> Character.isLowerCase((char) c)).count();``` should do it  in java
old wyvern
#

My classes start in 10 days I think ๐Ÿ’€

hot hull
#

Rip you

old wyvern
#

Don't spoilThats the start

#

first few mins of ep 1

prisma wave
#

another pls

#

i need to procrastinate more

lunar cypress
#

this is actually perfect

#

It's preparation for my exam

#

more or less

old wyvern
#

my exams got sem exams got postponed for 1 month

lunar cypress
#

obviously it won't be as easy but it helps me to get quicker at these things

old wyvern
#

and i got a mail today about reopeing after lockdown

#

I think they are going to call us back to uni in july

#

ffs

#

@hot hull u joining?

hot hull
#

Nah

old wyvern
#

alrighty

jovial warren
#

also @prisma wave if I'm making a new gradle project do I untick the Java one and tick the Kotlin/JVM option?

lunar cypress
#

@spring canyon @light leaf @gentle coyote are any of you up for coming rounds?

prisma wave
#

ugh

onyx loom
#

ig u only need the java one ticked if ur gonna write some classes in java, not sure

prisma wave
#

i was 1 character out with the regex

#

^

#

@jovial warren you don't need the java one unless you want to write java

onyx loom
#

which i hope would be 0

lunar cypress
#

Oh, coulda used regex lol

#

literally just [A-Z]

old wyvern
#

John join

lunar cypress
#

yay

prisma wave
#

this is an interesting one

lunar cypress
#

yeah

light leaf
#

are any of you up for coming rounds?
Nah, I'm sorry. I have to mess around with mvc

spring canyon
#

I'm joining next round

lunar cypress
#

awesome

jovial warren
#

oh dear

lunar cypress
#

and no worries paul

#

best of luck

jovial warren
#

people like me gonna get roasted lol

prisma wave
#

there's literally no way I can beat python

old wyvern
#

xD

lunar cypress
#

same

#

not possible

old wyvern
#

||n=int(input());c=input()
for i in input().split():print(c[int(i)-1],end="")||

prisma wave
#

yeah

#

rip

jovial warren
#

you can't beat python at shortest

prisma wave
#

not unless it's a very simple problem

jovial warren
#

it's what the language was designed for

old wyvern
#

maybe

jovial warren
#

if it's a problem that Python doesn't have a built-in function for then you could have a chance

prisma wave
#

Python has built in stuff for basically everything though

lunar cypress
#

can I beat kotlin though

#

that's the question

prisma wave
#

Perhaps

lunar cypress
#

It's gonna be close

jovial warren
#

also if this was based off of lines, python would lose almost all the time lol

old wyvern
#

julia?

prisma wave
#

It would be nice if you could use kotlin scripts

#

Without a main function

#

hm I might try julia

jovial warren
#

oh you can't?

prisma wave
#

i don't think so

#

not tried it though

jovial warren
#

lol

lunar cypress
#

julia looks nice, I might learn it as well

prisma wave
#

from my limited experience it's pretty nice

#

quite fast

lunar cypress
#

Yeah I wish I could use regular clojure and not clojure with entry point too

old wyvern
#

sometimes as fast as c

jovial warren
#

as fast as C?

prisma wave
#

apparently it's faster than C sometimes

#

despite being dynamically typed

old wyvern
#

^

prisma wave
#

which is lowkey insane

jovial warren
#

how tf does a language become faster than C lol

lunar cypress
#

I mean it compiles to native code

jovial warren
#

probably why

old wyvern
#

well its kind of comparitive

jovial warren
#

native code is machine code isn't it

#

a.k.a binary

old wyvern
#

optimized vs what people write in c

prisma wave
#

pretty much

old wyvern
#

same case as java

prisma wave
#

damn kotlin lost ๐Ÿ˜ฆ

lunar cypress
#

๐Ÿ™‚

prisma wave
#

apparently julia beats C in userfunc_mandelbrot

#

whatever that is

old wyvern
#

xD

prisma wave
#

and that's a microbenchmark

lunar cypress
#

@spring canyon

jovial warren
#

how do you create modules in gradle? the same way you do in maven or what?

#

or are modules not DS

prisma wave
#

pretty much the same way

#

IJ can do most of the work for you

lunar cypress
#

lel again

#

I feel like the probability of shortest mode is less than the others

prisma wave
#

yeah it seems like it

jovial warren
#

wait why are main and test different modules?

#

never knew that was a thing

prisma wave
#

they are different source sets

#

iirc

jovial warren
#

why didn't creating a new module create main and test?

spring canyon
#

Sorry, I was too slow

prisma wave
#

because a module won't necessarily store code in java style

jovial warren
#

so what do I do?

prisma wave
#

make them yourself

jovial warren
#

just create the src directory manually?

#

ah okay

#

do I create the src directory and then main and test as modules or main and test as directories?

prisma wave
#

as directories

jovial warren
#

will they colour code correctly though?

#

also is it src/main/kotlin for kotlin source rather than src/main/java? because maven uses src/main/java for both I think

prisma wave
#

yes

#

and yes IJ should colour code it

jovial warren
#

after a build?

#

also do I have to manually create these directories every time I create a new module?

prisma wave
#

I believe so yes

#

also

#

I BEAT PYTHON

jovial warren
#

gj

old wyvern
#

really?

prisma wave
old wyvern
#

my screen wasnt refreshing

#

lol

#

gg

onyx loom
#

L

prisma wave
#

๐Ÿ˜Ž

onyx loom
#

kotlin stay wonning

prisma wave
#

python bad

onyx loom
#

Ws all round

prisma wave
#

yep

#

yet another W for kotlin

old wyvern
#

oh

#

thats just me being a idiot

prisma wave
#

sure

#

it's kotlin being better

old wyvern
#

xD

#

I used the ncr formula

#

u simplified it further

#

welp

prisma wave
#

oh yeah

old wyvern
#

xD

prisma wave
#

ncr is overkill lol

old wyvern
#

lol

prisma wave
#

mine is O(n) yours is O(n!) I think

old wyvern
#

yes

lunar cypress
#

fuckin hell

old wyvern
#

Imma try vbs for next shortest