F - Gaby Ivanushka Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Practice URAL 1082
Description
Once upon a time there lived a tsar that has a daughter — Beautiful Vasilisa. There were many of the young men that wanted to marry her but she repelled all suitors. The tsar was tired of her jigs, he got angry and issued an order: "The first who solves my puzzle, will marry Vasilisa!" Ivanushka decided to try his fortune. He came to the tsar and the tsar told him: "This is a program for you. Input N numbers and the program will tell you who you should marry. I give you a day to think." Ivanuska looked at the program and got upset: there were unknown letters, omnifarious symbols. The time passed. Ivanushka has thought out nothing. The program was as follows.
The C program | The Pascal program |
---|---|
| |
Now you know this program. You may try to help Ivanushka.
Input
The first line of an input contains a positive number N ≤ 1000.
Output
You are to write to an output N numbers in one line. The tsar's program given those numbers should output a message "Beautiful Vasilisa" The numbers should be separated with a space. If several variants are possible choose any you like.
Sample Input
input | output |
---|---|
| |
Sample Output
3 7 19
Solution:這道題太有趣了,說了這麼多,說到底是想女兒快嫁出去呀。既然如此,無論我輸入什麼,
結果都應該是Beutiful Vasilisa,他老爸想得太周到了,那我就不客氣啦。
輸入為n,輸出任意的n個正整數就可以過關了