結果

問題 No.2436 Min Diff Distance
コンテスト
ユーザー ebi_fly
提出日時 2023-08-15 03:05:36
言語 C++17(gcc12)
(gcc 12.4.0 + boost 1.90.0)
コンパイル:
g++-12 -O2 -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 537 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 5,953 ms
コンパイル使用メモリ 335,892 KB
実行使用メモリ 27,792 KB
最終ジャッジ日時 2026-07-02 04:29:04
合計ジャッジ時間 9,345 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 23
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

/*
validation
*/

#include <bits/stdc++.h>

#include "testlib.h"

using ll = long long;

const ll n_min = 2, n_max = 200'000;

int main() {
    registerValidation();
    int n = inf.readLong(n_min, n_max);
    inf.readEoln();
    std::set<std::pair<int,int>> set;
    for(int i = 0; i < n; i++) {
        int x = inf.readLong(1ll, n);
        inf.readSpace();
        int y = inf.readLong(1ll, n);
        inf.readEoln();
        ensure(set.find({x, y}) == set.end());
        set.insert({x, y});
    }
    inf.readEof();
    return 0;
}
0