結果
| 問題 |
No.730 アルファベットパネル
|
| コンテスト | |
| ユーザー |
rhincodon66
|
| 提出日時 | 2018-09-07 21:38:51 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 286 bytes |
| コンパイル時間 | 1,668 ms |
| コンパイル使用メモリ | 167,876 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-29 11:53:49 |
| 合計ジャッジ時間 | 2,243 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
string s;cin >> s;
vector<int> a(26);
for(int i=0;i<s.size();++i){
a.at(s.at(i)-'A')++;
}
bool ans=true;
for(int i=0;i<26;++i){
if(a.at(i)>1) ans=false;
}
if(ans) cout << "YES" << endl;
else cout << "NO" << endl;
}
rhincodon66