結果
| 問題 | No.730 アルファベットパネル |
| コンテスト | |
| ユーザー |
dama_math
|
| 提出日時 | 2018-09-07 21:35:13 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 697 bytes |
| コンパイル時間 | 1,714 ms |
| コンパイル使用メモリ | 159,036 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-29 05:46:56 |
| 合計ジャッジ時間 | 2,204 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 8 |
ソースコード
#include <bits/stdc++.h>
#define FI first
#define SE second
#define PB push_back
#define ll long long
#define FOR(i,a,b) for(int i=a;i<b;i++)
#define ROF(i,a,b) for(int i=b-1;i>=a;i--)
#define YES(i) cout<<(i?"YES":"NO")<<endl
#define Yes(i) cout<<(i?"Yes":"No")<<endl
#define co(i) cout<<(i)<<endl
#define fcout cout<<fixed<<setprecision(10)
#define uni(i) i.erase(unique(i.begin(), i.end()), i.end());
#define all(i) i.begin(),i.end()
using namespace std;
const int INF=1e9+7;
const int MOD=1e9+7;
int main(){
string s; cin>>s;
int a[28]={};
FOR(i,0,s.size()){
a[s[i]-'A']++;
}
bool flag=true;
FOR(i,0,28){
if(a[i]>1) flag=false;
}
YES(flag);
}
dama_math