砍树答案

3 条评论

  • @ 2024-10-5 10:04:35

    ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

    • @ 2024-10-3 11:50:02

      算了,帮帮你吧!

      • @ 2024-10-3 11:49:43

        #include<bits/stdc++.h> using namespace std; int a[2000001],n; double x,y; int main(){ freopen("light.in","r",stdin); freopen("light.out","w",stdout); cin>>n; for(int i=1;i<=n;i++){ cin>>x>>y; for(double j=1;j<=y;++j){ if(a[int(jx)]==0) a[int(jx)]=1; else a[int(j*x)]=0; } } for(int i=1;;i++){ if(a[i]==1){ cout<<i; break; } } return 0; }

        • 1