B. 我家的门牌号

    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.

我家的门牌号

题目描述

我家住在一条短胡同里,这条胡同的门牌号从 11 开始顺序编号。

若其余各家的门牌号之和减去我家门牌号的两倍,恰好等于 nn,求我家的门牌号及总共有多少家。数据保证有唯一解。

输入格式

一个正整数 nnn<100000n<100000

输出格式

一行,包含两个正整数,分别是我家的门牌号及总共有多少家,中间用单个空格隔开。

样例 #1

样例输入 #1

100

样例输出 #1

12 16

龙凤苑中学BC班考试

Not Attended
Status
Done
Rule
OI
Problem
4
Start at
2024-6-18 17:00
End at
2024-6-18 18:00
Duration
1 hour(s)
Host
Partic.
22