传统题 1000ms 256MiB

Odd Number

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

problem

small program is needed: When provided with an integer n the program should return the nth odd number.

我们需要一个小程序:当提供一个整数 n 时,小程序会返回到第 n 个奇数。

e.g. if 4 is input the output should be 7.

例如,如果输入是4,输出应该是7。

Task:

Write a program that outputs the nth odd number when provided with a positive integer.

任务:

写出一个程序,当输入一个正整数时,输出的是第 n 个奇数。

Constraints:

n is greater than 0 and less than 10000.

限制:

n 大于0,小于 10000.

4
7

2020 OUCC

未参加
状态
已结束
规则
IOI
题目
8
开始于
2024-10-30 14:00
结束于
2024-10-30 16:00
持续时间
2 小时
主持人
参赛人数
2