Ad
Code
Diff
  • def solution():
        import __main__
        __main__.refsol()
    
    • def solution():
    • import tests
    • tests.refsol()
    • import __main__
    • __main__.refsol()
def solution():
    import tests
    tests.refsol()
table table
table formatting
is supported
console.log('table!')
import socket
import time
def socket_client():
    print('b')
    a = socket.socket()
    time.sleep(0.1)
    a.connect(('127.0.0.1',1111))
    a.send("1234".encode())
    result = a.recv(1024).decode()
    a.close()
    return result == "1234"

Doesn't work on Codewars as of writing :(

Now it works!

.section .text
    .global rvv_memcpy

rvv_memcpy:

1:
    vsetvli     a3, a2, e8, m8, ta, ma
    vle8.v      v8, (a1)
    vse8.v      v8, (a0)

    add         a0, a0, a3
    add         a1, a1, a3
    sub         a2, a2, a3
    bnez        a2, 1b

    ret
.section .text
  .global solution
solution:
  la a0, msg
  tail preloaded_function

  .section .rodata
msg:
  .string "butterfly"