結果
| 問題 |
No.730 アルファベットパネル
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-30 12:09:05 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 403 bytes |
| コンパイル時間 | 4,346 ms |
| コンパイル使用メモリ | 250,780 KB |
| 最終ジャッジ日時 | 2025-02-20 15:51:48 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using ll = long long;
using ld = long double;
int cnt[26];
string S;
int main() {
cin >> S;
for (int i = 0; i < S.size(); i++) {
cnt[S[i] - 'A']++;
}
for (int i = 0; i < 26; i++) {
if (cnt[i] > 1) {
cout << "NO" << endl;
return 0;
}
}
cout << "YES" << endl;
return 0;
}