#include<bits/stdc++.h>
using namespace std;
string hash1(int i)
{
string s;
while(i)
{
s=char('A'+(i%26))+s;
i/=26;
}
return s;
}
int main()
{
cout<<100000<<endl;
for(int i=1;i<=50000;i++)
cout<<"arrive "<<hash1(i)<<endl;
for(int i=50000;i>=1;i--)
cout<<"leave "<<hash1(i)<<endl;
return 0;
}
使用该数据,可以卡掉暴力O(n)删除的做法