time limit per test: 0.25 sec. memory limit per test: 4096 KB
Find amount of numbers for given sequence of integer numbers such that after raising them to the M-th power they will be divided by K.
Input consists of two lines. There are three integer numbers N, M, K(0<N, M, K<10001) on the first line. There are N positive integer numbers − given sequence (each number is not more than 10001) − on the second line.
Write answer for given task.
4 2 50
9 10 11 12
: Michael R. Mirzayanov
: PhTL #1 Training Contests
: Fall 2001
Codeforces (c) Copyright 2010-2019 Mike Mirzayanov