test data of CF1168C is Too weak!

Правка en1, от 02Ljh, 2023-10-16 09:31:50

228371945

1168C - И-достижимость

This is the code which is $$$O(n^2)$$$ that passed this problem. The std is $$$O(nlogn)$$$.

this is the hack.

#include<bits/stdc++.h>
using namespace std;
int main()
{
    freopen("and.in","w",stdout);
    cout<<"300000 300000\n";
    cout<<1<<' ';
    for(int i=2;i<=300000-2;i++)
    {
        cout<<0<<' ';
    }
    cout<<3<<' '<<2<<'\n';
    for(int i=1;i<=300000;i++)
    {
        cout<<1<<' '<<300000<<'\n';
    }
    return 0;
}
Теги test data, hack

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский 02Ljh 2023-10-16 09:31:50 544 Initial revision (published)