結果
| 問題 | No.2286 Join Hands |
| コンテスト | |
| ユーザー |
👑 potato167
|
| 提出日時 | 2023-04-28 04:27:17 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 525 bytes |
| 記録 | |
| コンパイル時間 | 5,962 ms |
| コンパイル使用メモリ | 336,376 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-30 10:59:18 |
| 合計ジャッジ時間 | 8,079 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 58 |
ソースコード
#include <bits/stdc++.h>
#include "testlib.h"
using namespace std;
using ll=long long;
const int MIN_N=2;
const int MAX_N=5000;
const int MIN_M=0;
const int MAX_M=5000;
int main(int argc,char** argv){
registerValidation(argc,argv);
int N=inf.readInt(MIN_N,MAX_N);
inf.readSpace();
int M=inf.readInt(MIN_M,MAX_M);
inf.readEoln();
set<pair<int,int>> s;
for(int i=0;i<M;i++){
int a=inf.readInt(1,N);
inf.readSpace();
int b=inf.readInt(a+1,N);
inf.readEoln();
ensure(s.insert({a,b}).second);
}
inf.readEof();
}
potato167