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

30668번 - Good arrays 서브태스크다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 1024 MB192552317.969%

문제

Recently Vasya learned about integer division. Inspired by this sacred knowledge, he decided to learn more about arrays of positive integers which satisfy some divisibility conditions. More precisely, Vasya calls an array $a=\{a_1,a_2,\ldots,a_n\}$ good iff for every $i$ from 1ドル$ to $n-1,ドル $a_i$ is divisible by $a_{i+1}$. Please help him count the number of good arrays of length $n$ consisting of integer numbers not greater than $c$.

입력

The only input line contains two integers $n$ and $c$ (1ドル \le n, c \le 5 \cdot 10^7$) --- the length of the array and the maximum allowed value.

출력

Output a single integer --- the total number of good arrays of length $n$ consisting of positive integers not greater than $c$. As this number might be quite large, please output its remainder modulo 998ドル,244円,353円$.

제한

서브태스크

번호배점제한
115

$n \le 10,ドル $c \le 10$

214

$n \le 1000,ドル $c \le 1000$

312

$n \le 5000,ドル $c \le 5000$

416

$n \le 100,000円,ドル $c \le 100,000円$

514

$n \le 10^6$ & $c \le 10^6$

615

$n \le 10^7,ドル $c \le 10^7$

714

예제 입력 1

3 3

예제 출력 1

7

예제 입력 2

2 6

예제 출력 2

14

힌트

출처

Olympiad > Moscow Open Olympiad in Informatics > Moscow Open Olympiad in Informatics 2021-22 > Day 1 A번

채점 및 기타 정보

  • 예제는 채점하지 않는다.
  • 이 문제의 채점 우선 순위는 2이다.
(追記) (追記ここまで)

출처

대학교 대회

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

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