FSTCHAR - First Char
Just like the problem ASCII 1, this short description problem is intended to review basic concepts, encourage you to read about new languages and is a score length based problem that can put the usual rank upside down. You just have to print the first char of a given input.
Input
One string, whose length is not longer than 100 characters, of printable and non-printable characters (i.e., 1 <= ASCII code <= 126).
Output
The first, and just the first, character of the string.
Score
Source length.
Example
Input:
a
Output
a
Input:
Foo.
Output
F
Input:
The quick brown fox jumps over the lazy dog.
Output
T
hide comments
Adam Kusmirek:
2014-12-22 21:31:00
@author
|
|
anurag garg:
2014-03-18 08:08:46
@ author whats wrong in my submission
|
|
Alexandre Henrique Afonso Campos:
2014-03-14 03:20:41
All the submitted python programs got NZEC, but it is totally possible
|
Added by: | campos20 |
Date: | 2014-01-29 |
Time limit: | 1s |
Source limit: | 256B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 |
Resource: | Own. |