Problem hidden on 2012-09-26 15:37:25 by :D
WORDNUMS - Word or number (Easiest)
We use alphabetic characters from the Romans for words, and numerals from the Arabs for numbers. Can you write a program to tell the difference?
Input
Input will be a sequence of either alphabetic characters, or a sequence of numeric characters (no decimals).
Output
Output "word" (no quotes) if the characters are alphabetic. Output "number" (no quotes) if the characters are numeric. All character will be one or the other.
Example
Input: ACM Output: word Input: 012 Output: number
hide comments
:D:
2012-09-26 13:38:20
How is this different from the other version? Language restrictions only? |
|
numerix:
2012-09-26 12:58:11
That's not even tutorial level. Please remove from SPOJ. |
|
Neel Lahiri:
2012-09-26 11:10:19
TUTORIAL PLZ |
|
alan:
2012-09-26 06:02:17
有意思吗 |
|
(Tjandra Satria Gunawan)(曾毅昆):
2012-09-26 05:30:25
Definitely tutorial! even for BF programmer... |
|
Andres R. Arrieche S. [UCLA-ve]:
2012-09-26 03:39:52
Tutorial! |
Added by: | Paul Draper |
Date: | 2012-09-26 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | C CSHARP C++ 4.3.2 CPP C99 JAVA JS-RHINO RUBY |