Last active
June 4, 2017 08:18
-
-
Save Luzhiled/a7637ea271a2bf543a9ca27a2d8e4093 to your computer and use it in GitHub Desktop.
ABC063-B
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
#define fs first | |
#define se second | |
#define all(v) v.begin(), v.end() | |
#define rep(i, n) for (int i = 0; i < n; ++i) | |
#define pb emplace_back | |
using pii = pair<int, int>; | |
using vi = vector<int>; | |
using lint = long long; | |
const int inf = 1001001001; | |
const lint linf = 1001001001001001001ll; | |
const int mod = 1e9 + 7; | |
const int dx[]{0, 1, 0, -1, -1, -1, 1, 1}, dy[]{1, 0, -1, 0, -1, 1, -1, 1}; | |
template<typename T> inline bool chmin(T &a, T b) { if (a > b) { a = b; } return a > b; } | |
template<typename T> inline bool chmax(T &a, T b) { if (a < b) { a = b; } return a < b; } | |
template<typename T> inline void print(const T &x, string s = "\n") { cout << x << s; } | |
template<typename T> inline void print(const vector<T> &v, string s = " ") | |
{ rep(i, v.size()) cout << v[i] << (i + 1 == v.size() ? "\n" : s); } | |
inline bool inside(int y, int x, int H, int W) { return 0 <= y && y < H && 0 <= x && x < W; } | |
inline lint in() { lint x; std::cin>>x; return x; } | |
int main() { | |
string s; | |
cin >> s; | |
sort(all(s)); | |
bool f = true; | |
for (int i = 1; i < s.size(); ++i) { | |
if (s[i] == s[i - 1]) { | |
f = false; | |
} | |
} | |
cout << (f ? "yes" : "no") << endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment