NEXTODD - The next odd number
Given an integer 1 <= N <= 10000,you have to print the next odd number.
Score is the length of your source.
Input
The input file consists of series of numbers one in each line.The input is terminated by EOF.
Output
The next odd number.
Example
Input:
5
2
6
17
Output:
7
3
7
19
PS:Take care about your fingers, do not use more than 100 bytes of code.
hide comments
hibernating:
2011-12-06 07:55:49
why TLE ???? Last edit: 2011-12-06 07:56:57 |
|
isak:
2011-06-19 03:34:21
Can someone tell me how to read the input when it is terminated in EOF in C++? |
Added by: | :(){ :|: & };: |
Date: | 2010-08-25 |
Time limit: | 1s |
Source limit: | 100B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: NODEJS OBJC VB.NET |
Resource: | From a shortening contest. |