結果
問題 |
No.730 アルファベットパネル
|
ユーザー |
![]() |
提出日時 | 2019-02-18 14:54:50 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 481 bytes |
コンパイル時間 | 519 ms |
コンパイル使用メモリ | 56,812 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-06 05:40:41 |
合計ジャッジ時間 | 991 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#include <iostream> #include <string> int main() { std::string S; std::cin >> S; int n = (signed)S.size(); bool flag = true; for(int i = 0;i < n - 1;i++) { for(int j = i + 1;j < n;j++) { if(S[i] == S[j]) { flag = false; } } } if(flag) { std::cout << "YES" <<std::endl; } else { std::cout << "NO" <<std::endl; } return 0; }