結果
| 問題 |
No.730 アルファベットパネル
|
| コンテスト | |
| ユーザー |
merom686
|
| 提出日時 | 2018-09-07 21:23:21 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 438 bytes |
| コンパイル時間 | 679 ms |
| コンパイル使用メモリ | 74,856 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-29 05:13:30 |
| 合計ジャッジ時間 | 1,275 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <cmath>
using namespace std;
using ll = long long;
int main() {
string s;
cin >> s;
int p[256] = {};
for (const auto& c : s) {
p[c]++;
}
int b = 1;
for (int i = 0; i < 256; i++) {
if (p[i] > 1) b = 0;
}
cout << (b ? "YES" : "NO") << endl;
return 0;
}
merom686