結果

問題 No.730 アルファベットパネル
ユーザー ngtkana
提出日時 2020-02-26 23:37:38
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 289 bytes
コンパイル時間 1,463 ms
コンパイル使用メモリ 169,692 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-13 15:36:25
合計ジャッジ時間 1,995 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
int main(){
    std::string s;std::cin>>s;
    std::sort(s.begin(),s.end());
    for(int i=0;i<(int)s.length()-1;i++){
        if(s.at(i)==s.at(i+1)){
            std::cout<<"NO"<<std::endl;
            return 0;
        }
    }
    std::cout<<"YES"<<std::endl;
}

0