結果
| 問題 |
No.730 アルファベットパネル
|
| コンテスト | |
| ユーザー |
hatsuka_iwa
|
| 提出日時 | 2021-01-26 23:41:57 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 264 bytes |
| コンパイル時間 | 1,750 ms |
| コンパイル使用メモリ | 168,572 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-23 21:44:34 |
| 合計ジャッジ時間 | 2,427 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
string S;
cin >> S;
vector<int> a(26);
for (char c : S)
a.at(c - 'A')++;
for (int b : a) {
if (b > 1) {
cout << "NO" << endl;
return 0;
}
}
cout << "YES" << endl;
}
hatsuka_iwa