結果
問題 | No.730 アルファベットパネル |
ユーザー |
![]() |
提出日時 | 2018-09-07 21:33:38 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 299 bytes |
コンパイル時間 | 484 ms |
コンパイル使用メモリ | 55,980 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-29 05:43:42 |
合計ジャッジ時間 | 973 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
ソースコード
#include <iostream>#include <string>using namespace std;string s;int cnt[26];int main() {int i;cin >> s;for (i = 0; i < s.length(); i++) cnt[s[i] - 'A']++;for (i = 0; i < 26; i++) if (cnt[i] >= 2) break;if (i < 26) cout << "NO" << endl;else cout << "YES" << endl;return 0;}