Tap here to switch tabs
Problem
Submissions

Problem: Double Modular Exponentiation

med
30 min
Try to solve the Double Modular Exponentiation problem.

Statement

You are given a 2extD2 ext{D} integer array variables where variables[i] =[ai,bi,ci,mi]= [a_i, b_i, c_i, m_i], and an integer target.

An index i is considered good if it satisfies the following formula:

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Double Modular Exponentiation

med
30 min
Try to solve the Double Modular Exponentiation problem.

Statement

You are given a 2extD2 ext{D} integer array variables where variables[i] =[ai,bi,ci,mi]= [a_i, b_i, c_i, m_i], and an integer target.

An index i is considered good if it satisfies the following formula: