L2R - Learn to Read

Most problems on SPOJ are very reliant on the problem description. An unclear problem description can make the problem harder to solve than it should be. That's why the goal of this problem's description is to ensure that you have all the necessary information you need. However, it's not easy to include all information in the description without telling too much about the solution of the problem. Especially in riddles, where most problem descriptions are unclear. Some of them even have no problem description!

This problem is probably the easiest problem in SPOJ because I will give you the answer to this problem in the description. Well it's technically not the actual answer, but rather how you handle the test data correctly. If you already know what you're supposed to do with the input, I can ensure that you will solve this problem easily. It will be very simple, so simple that you can probably solve this if you have coded "Hello World!" at some point in your life. But then again, you might have forgotten how to code. But it's none of my concern.

Some people don't like long problem statement, and often times just read the input and output straight away. Maybe you just did that and come back here because you don't understand the input and output? That's why I told you that problem description is very important, don't skip it! Without it you will most likely lost on what you have to do. That is the power of a great problem description.

You're probably already itching to know what you have to do to get accepted in this problem. So now I will tell you how you solve this problem. Ready? Okay, here we go. You must process the input which consists of a number that will fit in a signed sixteen bit integer. Why sixteen bit you ask? Because I think it's unnecessary to increase the constraint to thirty-two or sixty-four bit since it won't add much difficulty to the problem. Decreasing it to two or three bit is also possible, but I like sixteen bit. But how do you process it? I might or might not have told you, but it's on the problem description.

If you still did not know what you are supposed to do with the input, perhaps you should start over reading from the top. Make sure you don't miss a single word that I typed here. You could also choose to continue reading, but I doubt it will benefit you anything. If you already read over but still can't understand what you have to do, maybe the next paragraph will help. I can't guarantee that, though.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Note that this last paragraph doesn't tell you anything, it's just here to make the problem statement longer and to punish those people that only read the last paragraph. You must respect the effort made by the problem setter to create a story fitting for the problem, it's not easy you know. Also, the paragraph before this is useless. You should totally ignore it.


An integer


An integer




hide comments
ansisg: 2018-09-08 18:49:27

That lorem ipsum is just random text, check https://en.wikipedia.org/wiki/Lorem_ipsum but i don't get this. only 3 AC!!! How hard this is?

aditya_rev: 2017-02-04 11:33:54

I just searching wat is lorem ipsum bla bla bla on google. But i got nothing. Lul

waffl3: 2016-10-21 14:05:57


sumbayak_ae: 2016-10-21 12:43:03

Last edit: 2016-10-21 12:44:30
bagas_tr98: 2016-10-21 10:26:32


adp0: 2016-07-05 23:04:15

Is that troll?

prady7330: 2016-04-27 08:18:33

question is .... You must process the input which consists of a number that will fit in a signed sixteen bit integer. :p

Jaber Adeeb: 2014-10-29 08:56:35

the hell is this ??
didn't get shit

shravan: 2014-10-16 07:04:43

Can you take a look at the latest submission, thanks

Andy: check the constraint carefully

Last edit: 2014-10-16 09:27:11
shravan: 2014-10-15 12:38:15


For some reason your code outputs your code, and please don't put spoiler in comment, I can check submission

Last edit: 2014-10-15 23:25:10

Added by:Andy
Time limit:10s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ASM64 GOSU
Resource:own problem