← All problemsSign in

Calculus

CodeChefRating 1943Open on judge ↗

You are given one positive integer $N$. Calculate $$\int_{0}^{\infty} \frac{e^{2 \pi x} - 1}{e^{2 \pi x} + 1} \left(\frac{1}{x} - \frac{x}{N^2 + x^2}\right) \,\mathrm{d}x \,.$$ It is possible to prove that its value can be written as a fraction $\frac{a}{b}$, where $a$ and $b$ are positive integers and $b$ is coprime with $998,244,353$. You need to find $a \cdot b^{-1}$ modulo $998,244,353$, w

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start