結果
| 問題 | No.1553 Lovely City |
| コンテスト | |
| ユーザー |
沙耶花
|
| 提出日時 | 2021-06-18 18:53:19 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 628 bytes |
| 記録 | |
| コンパイル時間 | 8,741 ms |
| コンパイル使用メモリ | 336,432 KB |
| 実行使用メモリ | 28,060 KB |
| 最終ジャッジ日時 | 2026-06-21 02:32:40 |
| 合計ジャッジ時間 | 19,156 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 26 |
ソースコード
#include <stdio.h>
#include <bits/stdc++.h>
#include "testlib.h"
#include <atcoder/all>
using namespace atcoder;
using mint = modint998244353;
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define Inf 1000000001
int main(){
registerValidation();
int N,M;
N = inf.readInt(2,200000);
inf.readSpace();
M = inf.readInt(1,200000);
inf.readEoln();
set<pair<int,int>> S;
rep(i,M){
int u,v;
u = inf.readInt(1,N);
inf.readSpace();
v = inf.readInt(1,N);
inf.readEoln();
assert(u!=v);
assert(!S.count(make_pair(u,v)));
S.insert(make_pair(u,v));
}
inf.readEof();
return 0;
}
沙耶花