結果

問題 No.2270 T0空間
ユーザー tsugutsugutsugutsugu
提出日時 2023-04-14 22:17:12
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 520 bytes
コンパイル時間 1,711 ms
コンパイル使用メモリ 171,284 KB
実行使用メモリ 63,616 KB
最終ジャッジ日時 2024-04-18 19:45:54
合計ジャッジ時間 4,229 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,812 KB
testcase_01 AC 1 ms
6,940 KB
testcase_02 AC 1 ms
6,940 KB
testcase_03 AC 2 ms
6,940 KB
testcase_04 AC 1 ms
6,940 KB
testcase_05 AC 2 ms
6,944 KB
testcase_06 AC 2 ms
6,944 KB
testcase_07 AC 2 ms
6,944 KB
testcase_08 AC 2 ms
6,944 KB
testcase_09 AC 2 ms
6,940 KB
testcase_10 AC 1 ms
6,940 KB
testcase_11 AC 15 ms
10,752 KB
testcase_12 AC 9 ms
7,424 KB
testcase_13 AC 32 ms
20,608 KB
testcase_14 AC 29 ms
20,480 KB
testcase_15 AC 28 ms
20,608 KB
testcase_16 AC 57 ms
34,816 KB
testcase_17 AC 114 ms
63,616 KB
testcase_18 AC 119 ms
63,488 KB
testcase_19 AC 127 ms
63,488 KB
testcase_20 AC 119 ms
63,488 KB
testcase_21 AC 123 ms
63,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int n, m;
    cin >> n >> m;
    vector<string> s(m);
    for (int i = 0; i < m; i++) {
        cin >> s[i];
    }
    vector<string> t(n, "");
    for (int i = 0; i < m; i++) {
        for (int j = 0; j < n; j++) {
            t[j] += s[i][j];
        }
    }
    set<string> st;
    for (int i = 0; i < n; i++) {
        st.insert(t[i]);
    }
    cout << (st.size() == n ? "Yes" : "No") << '\n';
}
0