请求撤下题解
查看原帖
请求撤下题解
746760
User_Unauthorized楼主2023/6/14 11:38

第一篇题解可以被下面的数据生成器生成的数据卡到 O(NM)\displaystyle \mathcal{O}(NM) 。

//Generator
#include<bits/stdc++.h>

constexpr int N = 1e5, M = 3e5, C = 1e9;

int main() {
	freopen("hack.in", "w", stdout);
	
	std::ostream_iterator<int> IntOut(std::cout, " ");

    *IntOut = N;
    *IntOut = M;
    std::cout << std::endl;
    
    for(int i = 1; i < N; ++i)
    	*IntOut = C;
    
    for(int i = N; i <= M; ++i)
    	*IntOut = i;
    	
    std::cout << std::endl << std::flush;
    
    return 0;
}
2023/6/14 11:38
加载中...