結果
| 問題 | No.2436 Min Diff Distance |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-15 03:05:36 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 537 bytes |
| 記録 | |
| コンパイル時間 | 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 |
ソースコード
/*
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;
}