一道“彩虹” 0分!!!
查看原帖
一道“彩虹” 0分!!!
1266129
c123LBY楼主2024/8/20 16:59

2个WA 4个TLE 2个RE

#include<bits/stdc++.h>
using namespace std;
using qw=long long;
qw a[9999];
int main(){
qw n,ans=0;
cin>>n;
for(int i=0;i<=n;i++)
{
qw t,x;
cin>>t>>x;
if(t<=1&&a[x]==0)
{
ans+=t;
a[x]=1;
}
cout<<ans<<endl;
}
}
2024/8/20 16:59
加载中...