ky28059's blog

By ky28059, history, 3 years ago, In English

Hi, my code keeps getting TLE on problem C of the CPC polygon practice contest. Can anyone help?


fun main() { repeat (10000) { Thread.sleep(1000) } println("qpwoeirut orz") }
  • Vote: I like it
  • +22
  • Vote: I do not like it

»
3 years ago, # |
Rev. 2   Vote: I like it +25 Vote: I do not like it

this works

fun main() {
    repeat (10000) {
        Thread.sleep(1000)
    }
    println("agnimandur apple ary begin bucket charlie chessbot codetiger codicon darren dottomato dreamr dutin elephant fishy fishy fishy gilgm izhang jake joepher khanh kmp llm moo nave octopi PIG pikaninja qpwoeirut seal skittles steventan treezariox vroom wox purple purple purple orz")
}

credit: BucketPotato

Edit 1: I've double checked, and as I expected, the code passes within the TL. If you're wondering whether your name is misplaced, the code also ACs (the output is correct) :).

  • »
    »
    3 years ago, # ^ |
      Vote: I like it +25 Vote: I do not like it

    yoooo why is my name there? :thinking:

    • »
      »
      »
      3 years ago, # ^ |
        Vote: I like it +25 Vote: I do not like it

      It is, must be a typo though, as 4 of the o's are missing.

    • »
      »
      »
      3 years ago, # ^ |
        Vote: I like it +23 Vote: I do not like it

      same, this is unsettling

    • »
      »
      »
      3 years ago, # ^ |
        Vote: I like it +27 Vote: I do not like it

      See my edit :)

    • »
      »
      »
      3 years ago, # ^ |
        Vote: I like it +22 Vote: I do not like it

      i'll be very real with you but it is a problem seeing my dumbosity name associated with such geniosities.

    • »
      »
      »
      3 years ago, # ^ |
        Vote: I like it +10 Vote: I do not like it

      at least he got one right

  • »
    »
    3 years ago, # ^ |
      Vote: I like it +25 Vote: I do not like it

    This might be it, thanks!

  • »
    »
    3 years ago, # ^ |
      Vote: I like it +32 Vote: I do not like it

    Interesting...

    When I submitted I got wrong answer expected steventan, found skittles [32nd token]

  • »
    »
    3 years ago, # ^ |
      Vote: I like it +22 Vote: I do not like it

    Are you sure there isn't a problem with the grader on token 25? Not sure if you caught it but I think you horribly misspelled "lunchbox"

  • »
    »
    3 years ago, # ^ |
      Vote: I like it +21 Vote: I do not like it

    who's treezariox? never heard of that guy