結果

問題 No.2700 Please Hack Greedy Solution!
ユーザー Theresa ApocalypseTheresa Apocalypse
提出日時 2024-03-29 23:08:23
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 500 ms
コード長 880 bytes
コンパイル時間 2,908 ms
コンパイル使用メモリ 246,836 KB
実行使用メモリ 6,548 KB
最終ジャッジ日時 2024-03-29 23:08:27
合計ジャッジ時間 3,372 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define endl '\n'

using namespace std;

using LL = long long;
using LD = long double;
using PII = pair<int,int>;
using PLL = pair<LL,LL>;

const LL M = 1e9 + 7;

mt19937 rd(chrono::steady_clock::now().time_since_epoch().count());

int main(){
    ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
    int T = 1;
    // cin>>T;
    while(T--){
        int n = 1000;
        vector<int> a(n+1);
        a[0] = 1;
        a[1] = 100000;
        a[2] = 100002;
        for(int i=3;i<=n;i++){
            a[i] = a[i-1] + a[1] + 1;
        }
        cout<<n+1<<" "<<n<<endl;
        cout<<1<<" "<<1<<endl;
        for(int i=1;i<=n;i++){
            cout<<a[i]<<" "<<i<<endl;
        }
        vector<int> dp(n+1);
        if(0) yes: cout<<"YES"<<endl;
        if(0) no:  cout<<"NO"<<endl;
    }
}
/*

3 5
4 19
2 8
3 12

1 10
1 1
2 12
3 23
4 34
5 45
6 56

*/
0