結果
| 問題 |
No.730 アルファベットパネル
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-17 22:57:08 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 235 bytes |
| コンパイル時間 | 2,541 ms |
| コンパイル使用メモリ | 194,428 KB |
| 最終ジャッジ日時 | 2025-01-13 02:44:34 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
cin.tie(0),ios::sync_with_stdio(false);
string s; cin>>s;
vector<int>v(26,0);
for(auto&&i:s)++v.at(i-'A');
cout<<(*max_element(v.begin(),v.end())>1?"NO"s:"YES"s)<<"\n"s;
}