結果
| 問題 |
No.730 アルファベットパネル
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-09-08 23:47:14 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 321 bytes |
| コンパイル時間 | 1,820 ms |
| コンパイル使用メモリ | 199,040 KB |
| 最終ジャッジ日時 | 2025-01-06 13:12:29 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
signed main() {
ios::sync_with_stdio(false);
string S;
cin >> S;
map<int, int> mp;
for (int i = 0; i < S.size(); ++i) ++mp[S[i]];
for (auto it = mp.begin(); it != mp.end(); ++it)
if (it->second > 1) cout << "NO" << endl, exit(0);
cout << "YES" << endl;
}