Submit | All submissions | Best solutions | Back to list |
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
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 |
hide comments
2012-09-26 13:38:20 :D
How is this different from the other version? Language restrictions only? |
|
2012-09-26 12:58:11 numerix
That's not even tutorial level. Please remove from SPOJ. |
|
2012-09-26 11:10:19 Neel Lahiri
TUTORIAL PLZ |
|
2012-09-26 06:02:17 alan
有意思吗 |
|
2012-09-26 05:30:25 (Tjandra Satria Gunawan)(曾毅昆)
Definitely tutorial! even for BF programmer... |
|
2012-09-26 03:39:52 Andres R. Arrieche S. [UCLA-ve]
Tutorial! |