HAJIME - Kill evil instantly
This problem tests your knowledge of the C programming language. Your task is to submit a snippet of C code that consists of two declarations defining a type called "zan", which should be a struct containing two members: first an unsigned int called "aku", then a constant pointer to char called "soku".
To make things more interesting, you can't use any whitespace in either declaration, and the two declarations must be sufficiently dissimilar (basically, you have to use two different tricks to get around the lack of whitespace).
Input
There is no input.
Output
Your submission should consist of exactly two declarations as described above, separated by whitespace.
Update: "Exactly two" means exactly two. Your code isn't allowed to define any other types; anything containing struct foo
or typedef unsigned int
is rejected.
"Whitespace" includes newlines. NUL ('\0') is not whitespace, but it isn't a valid token separator either.
Example
Output: typedef:struct{unsigned*aku;char*soku;}zan; typedef:struct{unsigned*aku;char*soku;}zan;
This example is invalid for the following reasons:
typedef:
is a syntax erroraku
andsoku
have the wrong type- the two declarations are too similar
hide comments
Piotr KÄ…kol:
2015-03-10 04:20:00
If someone is willing to rewrite the Haskell judge from this problem to C++ in order to fix this problem feel free to email me. |
|
Mitch Schwartz:
2014-12-26 23:54:52
Cluster change (Pyramid to Cube) apparently broke the judge, causing internal errors. Admins notified. |
|
Ayushi Srivastava:
2014-12-20 11:57:38
i am getting internal error :( |
|
Saurabh Singh:
2014-05-07 10:57:39
can i use like #define @sp '\t' for getting the blank space ? |
|
Rakib Ansary Saikot:
2014-03-27 23:20:57
Last edit: 2014-03-27 23:21:09 |
|
Gaurav Dhage:
2012-11-12 06:57:29
http://gcc.gnu.org/onlinedocs/cpp/Tokenization.html#Tokenization
|
|
Tony Beta Lambda:
2009-12-26 10:28:15
char *const
|
|
Smithers:
2009-12-07 07:59:04
Can someone please confirm the type we are meant to be defining, i.e. am I correct in thinking that the line should have the same effect as
|
|
Drew Saltarelli:
2009-08-03 14:16:30
why is the time limit 20 seconds? Shouldn't text programs run in O(1) time, since no operations are used? |
Added by: | Lukas Mai |
Date: | 2005-10-17 |
Time limit: | 0.100s |
Source limit: | 512B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | TEXT |