社区讨论
月赛 t3 n(n+q) 过了及其 hack
学术版参与者 4已保存回复 5
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 5 条
- 当前快照
- 1 份
- 快照标识符
- @mjfkob4p
- 此快照首次捕获于
- 2025/12/21 18:16 3 个月前
- 此快照最后确认于
- 2025/12/24 11:15 2 个月前
https://www.luogu.com.cn/record/254389821
hack generator:
CPP#include<bits/stdc++.h>
#define all(x) x.begin(),x.end()
#define pb push_back
#define mkp make_pair
#define dbg cerr<<"LINE "<<__LINE__<<":"
using namespace std;
//typedef long long ll; const ll linf=1e18;
constexpr int N=1000009,inf=1e9,mod=998244353;
int main(){
//freopen(".in","r",stdin);
//freopen(".out","w",stdout);
ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
int n=2e5,q=4e5;
cout<<n<<" "<<q<<" "<<2<<"\n";
for(int i=1;i<=n;i++) cout<<1<<" "<<i+2<<"\n";
for(int i=1;i<=q;i++) cout<<i<<"\n";
return 0;
}
回复
共 5 条回复,欢迎继续交流。
正在加载回复...