Archive for the ‘Just for Fun’ Category
Several days ago I stumbled upon a problem EXPR2 in SPOJ. The problem could be very easy if this constraint didn’t exist: use only C/C++, Pascal, or Java, and there must not be any semicolons in the source code.
Well, after googling and thinking a little bit, I realized that this problem can be solved easily using C++. The main savior here is the if block construct.
Do you, as a programmer, sometimes feel bored writing many programs? Or tired struggling to design some important algorithms? I do.
Take a rest. Programmers also need refreshing activities. Maybe by reading some jokes.
I’ve searched the internet and found many amusing jokes. I read them and feel refreshed. No, they aren’t jokes you usually find in books. They are jokes about programming, the topic you’re interested in. Now I want to share them to you.
No, it is not a brand new programming language or technology. It is a term for a program source code that has valid syntax of several programming languages. That is, it can be correctly compiled in several languages. The resulting executable files of resulting compilation in different languages will perform exactly the same operation or output.