結果
問題 | No.730 アルファベットパネル |
ユーザー |
![]() |
提出日時 | 2018-09-09 13:35:46 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 341 bytes |
コンパイル時間 | 1,429 ms |
コンパイル使用メモリ | 163,360 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-23 06:57:28 |
合計ジャッジ時間 | 2,216 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#include <bits/stdc++.h> typedef unsigned long long ll; #define INF 1000000000 using namespace std; #define N 100000 int main(void){ string s; cin>>s; sort(s.begin(),s.end()); for(int i=0;i<s.size()-1;i++){ if(s[i]==s[i+1]){ cout<<"NO"<<endl; return 0; } } cout<<"YES"<<endl; }