1312A - Two Regular Polygons
28 Jan 2021 — Tags: None
Click to show code.
using namespace std;
int main(void)
{
int t, n, m;
cin >> t;
while (t--)
{
cin >> n >> m;
cout << (n % m == 0 ? "YES" : "NO") << endl;
}
return 0;
}