結果

問題 No.2700 Please Hack Greedy Solution!
ユーザー kokoseikokosei
提出日時 2024-03-29 21:39:59
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 535 bytes
コンパイル時間 1,211 ms
コンパイル使用メモリ 96,616 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-03-29 21:40:01
合計ジャッジ時間 1,797 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
using ll = long long;

int main(void){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    
    int N = 1000, W = 1000;
    cout << N << " " << W << endl;
    cout << 2000 << " " << 1 << endl;
    vector<pair<int, int>> a;
    int sum = 1;
    for(int i = 2;i <= W;i++){
        a.push_back({sum, i});
        sum += 2001;
    }
    reverse(a.begin(), a.end());
    for(auto [v, w] : a){
        cout << v << " " << w << "\n";
    }
    return 0;
}
0