結果
問題 | No.1664 Unstable f(n) |
ユーザー |
👑 ![]() |
提出日時 | 2021-09-03 22:09:59 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 519 bytes |
コンパイル時間 | 2,736 ms |
コンパイル使用メモリ | 107,232 KB |
最終ジャッジ日時 | 2025-01-24 05:55:19 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 RE * 1 |
other | WA * 16 RE * 21 MLE * 1 |
ソースコード
#include <iostream>#include <vector>#include <algorithm>#include <atcoder/dsu>using namespace std;using i32 = int32_t;using u32 = uint32_t;using i64 = int64_t;using u64 = uint64_t;#define rep(i,n) for(int i=0; i<(n); i++)int main(){int N,M; cin >> N >> M;atcoder::dsu G(N*2);rep(i,M){int x,y; cin >> x >> y; x--; y--;G.merge(x,N+y);}return 0;}struct ios_do_not_sync{ios_do_not_sync(){ios::sync_with_stdio(false);cin.tie(nullptr);}} ios_do_not_sync_instance;