#include<bits/stdc++.h> using namespace std; int n,m; vector<int> v(n+1); vector<vector<int>> g(n+1,vector<int>(n+1,0)); int f(int a,int b){ int c2=0,c5=0; while(a%2==0){ c2++; a/=2; } while(a%5==0){ c5++; a/=5; } ...