結果
問題 | No.2270 T0空間 |
ユーザー | tsugutsugu |
提出日時 | 2023-04-14 22:17:12 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 130 ms / 2,000 ms |
コード長 | 520 bytes |
コンパイル時間 | 1,624 ms |
コンパイル使用メモリ | 176,104 KB |
実行使用メモリ | 63,488 KB |
最終ジャッジ日時 | 2024-10-10 13:08:20 |
合計ジャッジ時間 | 4,119 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#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'; }