G
#include#define INF 0x3f3f3f3f #define mod 998244353 #define ll long long using namespace std; const int N=1e5+5; int n,t,a[N],x,y,z,b; void solve() { cin>>n>>t; b=t; for(int i=1;i<=n;i++){ cin>>x>>y; z=y; for(int j=1;j<=t;j++){ a[j]+=(j%2==1?1:-1)*x*z;z*=y; } } if(!t){ cout<<0<<'n'; return ; } for(int i=1;i t; //while(t--){ solve(); //} }



