Solve any programming problem with this one weird trick!

Правка en3, от snowmanonahoe, 2024-01-05 01:48:24

I have solved competitive programming. With my algorithm, you can solve any programming problem ever!

The reason a general algorithm for all algorithms does not exist is because of the halting problem. If you were to iterate through all programs, it is impossible to determine whether or not a program will halt, so you will hit a program that is an infinite loop with no deterministic way to continue.

But, this is cp, there's a time limit, so we can just cut it off at the time limit. No more halting problem.

The algorithm:

  1. Iterate through every writable ASCII string.

  2. Try to compile it.

  3. If it succeeds, run the sample case on it.

  4. If it gives the right answer, submit it.

  5. Continue until AC.

LGM has never before been so easy.

Теги humor

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский snowmanonahoe 2024-01-05 01:48:24 2 Tiny change: 'gorithm:\n1. Itera' -> 'gorithm:\n\n1. Itera'
en2 Английский snowmanonahoe 2024-01-05 01:47:21 8
en1 Английский snowmanonahoe 2024-01-05 01:46:30 817 Initial revision (published)