Description
Remember in the last chapter, we used to output "Hello, World!"?
Although it is not the data of the basic data type involved in this chapter, we can also use the sizeof function to obtain the size of the space it occupies.
Please program to find its size and see if it is the same as you imagined?
Input
none.
Output
An integer, the size of "Hello, World!".
Input sample
(none)
Output sample
(not provided)
hint
"Hello, World!" is actually a string type, which will be described in detail in Chapter 1.7.
Answer
Comment first then view it after your comment is approved. Join QQ Group to display all hidden texts.
Result
Used memory: 128kB
Run time: 1ms
Language:G++
Submit time:2019-04-14 09:33:13
Problem link
http://noi.openjudge.cn/ch0102/01/
OpenJudge 10:The size of "Hello, World!"
Comments