report VI VI EN
Register | Login
  • HOME
  • PROBLEMSET
  • ROADMAP
  • COMPETITION
  • TOPIC
  • RANKING
  • GUIDE
  • MASHUP
  • ABOUT
  • CONTACT
  • Problem
  • Submit
  • Results
Divisors counting 2 - MarisaOJ: Marisa Online Judge

Divisors counting 2

Time limit: 500 ms
Memory limit: 256 MB
Given $q$ queries. Each query gives you an integer $x$, count the number of divisors of $x$. ### Input - The first line contains an integer $q$. - The next $q$ lines, each line contains an integer $x$. ### Output - For each query, print an integer, the number of divisors. ### Constraints - $1 \le q \le 10^4$. - $1 \le x \le 10^9$. ### Example Input: ``` 3 4 5 12 ``` Output: ``` 3 2 6 ```
Basic number theory
Prime number 2
Sieve of Eratosthenes
Segmented sieve
Prime factors
Maximum GCD
Divisors counting
Largest common divisor
Nearest Element
Divisors counting 2
GCD and LCM
GGCD
Square root sum
Square number
Sum sum sum
Topic
Math
Rating 1200
Solution (1) Solution