Type: Default 1000ms 256MiB

数车厢

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

题目背景

五一放假了, 辰辰要坐火车回姥姥家

题目描述

火车一共有 nn 节车厢, 辰辰在火车从前向后数第 aa 节车厢, 请问从后向前数, 这是第几节车厢?

数据格式

输入格式

一行两个整数 n,an, a.

输出格式

输出一个整数, 表示从后向前数, 这是第几节车厢.

样例

5 3
3
2 1
2

数据范围

1an1001 \leq a \leq n \leq 100

[北辰杯 North-Star-Cup] 四月复现赛

Not Attended
Status
Done
Rule
Ledo
Problem
10
Start at
2023-4-22 8:00
End at
2023-5-12 8:00
Duration
480 hour(s)
Host
Partic.
31