Logo
(追記) (追記ここまで)

19313번 - Kids Aren't Alright 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB37151343.333%

문제

As unlikely as it may seem, a crazy guy on the phone claims to have kidnapped your precious child. You don't really believe him, as all your children (possibly none) are playing in front of you right now, safe and sound. Anyway, you're fairly curious about the situation, so you ask the criminal what he wants for releasing his hostage.

As boring as it may seem, the kidnapper asks for money. Just money. You are about to hang up the phone in disappointment when something peculiar attracts your attention. Your interlocutor is not telling you the exact amount he wants. Instead, he proposes you a riddle.

As ridiculous as it may seem, the riddle is:

"How many non-empty sets of positive integers exist such that their greatest common divisor is 1, while their least common multiple is $m$?".

Then, the abductor tells you that the answer to this riddle, taken modulo 998244353ドル,ドル is the exact amount of money he wants for returning your imaginary offspring.

You're now wondering about the rates at the kidnapping market, since you've been away from this kind of affairs for quite some time. Not that you're going to pay the snatcher a single penny, though.

입력

The only line of the input contains a single integer $m$ (1ドル \le m \le 10^{18}$).

출력

Output a single integer --- the amount of money you've been asked for.

제한

예제 입력 1

6

예제 출력 1

7

예제 입력 2

100

예제 출력 2

322

힌트

In the first example test case, all suitable sets are $\{1, 6\},ドル $\{2, 3\},ドル $\{1, 2, 3\},ドル $\{1, 2, 6\},ドル $\{1, 3, 6\},ドル $\{2, 3, 6\},ドル and $\{1, 2, 3, 6\}$.

출처

Camp > Petrozavodsk Programming Camp > Winter 2018 > Day 6: Gennady Korotkevich Contest 3, Grand Prix of Gomel K번

Contest > Open Cup > 2017/2018 Season > Stage 12: Grand Prix of Gomel K번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /