ky28059's blog

By ky28059, history, 11 days 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

»
11 days 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) :).

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

    yoooo why is my name there? :thinking:

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

    This might be it, thanks!

  • »
    »
    11 days 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]

  • »
    »
    11 days 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"

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

    who's treezariox? never heard of that guy