[ABC317B] MissingNo
该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。
Problem Statement
Naohiro had consecutive integers, one of each, but he lost one of them.
The remaining integers are given in arbitrary order as . Find the lost integer.
The given input guarantees that the lost integer is uniquely determined.
Constraints
- All input values are integers.
- The lost integer is uniquely determined.
Input
The input is given from Standard Input in the following format:
Output
Print the answer.
3
2 3 5
4
Naohiro originally had four integers, , then lost , and now has .
Print the lost integer, .
8
3 1 4 5 9 2 6 8
7
16
152 153 154 147 148 149 158 159 160 155 156 157 144 145 146 150
151
Programming exercise on 21 August
- 状态
- 已结束
- 规则
- XCPC
- 题目
- 4
- 开始于
- 2024-8-21 17:30
- 结束于
- 2024-8-21 18:30
- 持续时间
- 1 小时
- 主持人
- 参赛人数
- 2