結果
| 問題 | No.1557 Binary Variable |
| コンテスト | |
| ユーザー |
noya2
|
| 提出日時 | 2021-05-14 23:02:42 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 623 bytes |
| 記録 | |
| コンパイル時間 | 7,679 ms |
| コンパイル使用メモリ | 335,428 KB |
| 実行使用メモリ | 28,764 KB |
| 最終ジャッジ日時 | 2026-06-20 09:15:47 |
| 合計ジャッジ時間 | 18,051 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 34 |
ソースコード
/*
入力 validation。WA なら OK。
*/
#include"testlib.h"
#include<bits/stdc++.h>
using namespace std;
const int MIN_N = 1;
const int MAX_N = 1000000000;
const int MIN_M = 1;
const int MAX_M = 200000;
int main(){
registerValidation();
int N = inf.readInt(MIN_N, MAX_N, "N");
inf.readSpace();
int M = inf.readInt(MIN_M, MAX_M, "M");
inf.readEoln();
set<pair<int,int>> st;
for (int i = 0; i < M; i++){
int L = inf.readInt(1, N, "L");
inf.readSpace();
int R = inf.readInt(L, N, "R");
inf.readEoln();
st.insert(pair<int,int>(L,R));
}
assert(st.size() == M);
inf.readEof();
return 0;
}
noya2