結果

問題 No.1563 Same Degree
ユーザー FlkanjinFlkanjin
提出日時 2022-01-05 17:02:15
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 1,747 bytes
コンパイル時間 1,256 ms
コンパイル使用メモリ 142,640 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-23 20:49:31
合計ジャッジ時間 2,482 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 30 ms
5,376 KB
testcase_02 AC 28 ms
5,376 KB
testcase_03 AC 29 ms
5,376 KB
testcase_04 AC 30 ms
5,376 KB
testcase_05 AC 29 ms
5,376 KB
testcase_06 AC 32 ms
5,376 KB
testcase_07 AC 31 ms
5,376 KB
testcase_08 AC 32 ms
5,376 KB
testcase_09 AC 32 ms
5,376 KB
testcase_10 AC 32 ms
5,376 KB
testcase_11 AC 12 ms
5,376 KB
testcase_12 AC 25 ms
5,376 KB
testcase_13 AC 70 ms
5,376 KB
testcase_14 AC 80 ms
5,376 KB
testcase_15 AC 55 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _USE_MATH_DEFIMES
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cctype>
#include <climits>
#include <clocale>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <random>
#include <regex>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>

const int MOD = 1'000'000'007;
const int MOD2 = 998'244'353;
const int INF = 1'000'000'000; //1e9
const int NIL = -1;
const long long LINF = 1'000'000'000'000'000'000; // 1e18
const long double EPS = 1E-10L;

template<class T, class S> inline bool chmax(T &a, const S &b){
    if(a < b){a = b; return true;}
    return false;
}
template<class T, class S> inline bool chmin(T &a, const S &b){
    if(b < a){a = b; return true;}
    return false;
}
template<class T, class Container> inline bool exist(Container &s, const T &e){
    return (s.find(e) != std::end(s));
}
template<class T> inline bool inside(T x, T lx, T rx){
    return (std::clamp(x, lx, rx) == x);
}
template<class T> inline bool inside(T x, T y, T lx, T rx, T ly, T ry){
    return inside(x, lx, rx) && inside(y, ly, ry);
}








bool solve(){
    int N, M; std::cin >> N >> M;
    std::vector<int> u(M), v(M);
    for(int i{0}; i < M; ++i) std::cin >> u[i] >> v[i];
    return N != 1;
}

int main(){
    int T; std::cin >> T;
    while(T--){
        std::cout << (solve() ? "Yes" : "No") << "\n";
    }
    return 0;
}
0