#include // #include using namespace std; // using namespace atcoder; using lint = long long; #define endl '\n' lint const mod = 1e9+7; //long const mod = 998244353; long long gcd(long long a,long long b){ if(a> n; lint y[n]; for(int i=0;i> y[i]; vector>dp(n+1); for(int i=0;i