Mission 2 - F1: pmurT Ques(1)

Mission 2 - F1: pmurT Ques(1)

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

P1032 Mission 2 - F1: pmurT Ques(1)

Problem Background

Radar finally gets to the country and is now meeting pmurT. pmurT gives Radar several questions for Radar to answer.

Radar answered all of them. Can you answer it?

Problem Statement

Here’s pmurT’s \(1^{st}\) problem:

Known \(A=x^2+x+1\), given \(A\), find the positive number \(x\). (Keep \(2\) decimal places in output)

Constraints

  • \(0 \le A \le 10000\)
  • \(A\) is an integer.

Input

\(A\)

Output

\(x\)

If there’s no possible positive number \(x\), print \(-998244353\).

Samples

No samples needed!!!!!

Hint

Draw the function graph of \(A\) and \(x\) (\(x\) -> \(X\)-axis, \(A\) -> \(Y\)-axis):

p1032hint1.png

Just look at its part with positive \(x\)s - can you think of something through it?

AOCode Round #3 & AOSC #2

未参加
状态
已结束
规则
OI
题目
9
开始于
2022-02-06 18:00
结束于
2022-02-06 20:18
持续时间
2.3 小时
主持人
参赛人数
23