Skip to content

Commit 77f6e81

Browse files
committed
Added submission link
1 parent 28f14ad commit 77f6e81

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Problems/Mathematics/Day-01/sol/Hardik Singh Rana/Solution2.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ using namespace std;
1616

1717
const ll MOD = 1e9+7;
1818
const ll INF = 1e18;
19+
/*
20+
We need to count the no of pairs such that their product makes some number's k-th power-this means the product of the two numbers should have
21+
factors frequency that is divisible by k. For every number first factorize it using spf(also store its factors mod k) and also store how much
22+
factor more it needs to make the k-th power add this for all numbers.
1923
24+
*/
25+
26+
/* Submission Link: https://codeforces.com/contest/1225/submission/355183203 */
2027
void solve() {
2128
int n,k;
2229
cin>>n>>k;
@@ -68,4 +75,4 @@ int main() {
6875
//cin >> t;
6976
while(t--) solve();
7077
return 0;
71-
}
78+
}

0 commit comments

Comments
 (0)