Problem:


Score : 200 points

Problem Statement

You are given a string S consisting of lowercase English letters. Determine whether all the characters in S are different.

Constraints

2 ≤ |S| ≤ 26, where |S| denotes the length of S.

S consists of lowercase English letters.

Input

Input is given from Standard Input in the following format:

S

Output

If all the characters in S are different, print yes (case-sensitive); otherwise, print no.

Sample Input 1

uncopyrightable

Sample Output 1

yes

Sample Input 2

different

Sample Output 2

no

Sample Input 3

no

Sample Output 3

yes



Sample input:
uncopyrightable


Sample output:
yes

Submission status: Accepted

Solution code:
def main():
    # b, c = map(int, raw_input().split())
    a = raw_input().strip()
    print 'yes' if len(set(a)) == len(a) else 'no'

main()

Submission status: Runtime Error

Solution code:
S=input
print("yes" if len(S)==len(set(S)) else "no")

Submission status: Runtime Error

Solution code:
S=input
print("yes" if len(S)=len(set(S)) else "no")

Submission status: Runtime Error

Solution code:
a=input()
b=[]
c=0
for i in range(len(a)):
  b.append(a[i])
b.sort()
for i in range(len(a-1)):
  if b[i]==b[i+1]:
    c=c+1
if c==0:
  print("yes")
else:
  print("no")

Submission status: Runtime Error

Solution code:
s=input()
w=set()
for i in (len(s)):
    w.add(s[i])
if len(s)==len(w):
    print("Yes")
else:
    print("No")

Submission status: Runtime Error

Solution code:
# coding = SJIS

a, b = map(int, input().split())

if a + b >= 10:
    print("error")
else:
    print(a + b)

Submission status: Runtime Error

Solution code:
s = input()
s = sort.s

for i in range(1,len(s)):
    if s[i] == s[i-1]:
        print('no')
        exit()
print('yes')

Submission status: Runtime Error

Solution code:
s = input()

n = []*26

for e in s:
  n[e-'a']+=1
  
for i in n:
  if i>1:
    print("no")
    return
print("yes)

Submission status: Runtime Error

Solution code:
s = list(innput())

if len(s) == len(set(s)):
    print('yes')
else:
    print('no')

Submission status: Runtime Error

Solution code:
def check(s):
  for i in range(1, len(s)):
    if i - 1 in s[i:]:
      return "no"
  return "yes"

s = input()
print(check(s))

Submission status: Runtime Error

Solution code:
s=input()
print("yes" if len(s)==len(set(s) else "no")

Submission status: Runtime Error

Solution code:
N = input()
dic = defaultdict(int)

for s in N:
  dic[s] += 1
  
  if dic[s] > 1:
    print('no')
    exit()

print('yes')

Submission status: Runtime Error

Solution code:
s=input()
frag="yes"
for i in range(s):
  n=s.count(s[i])
  if n >1:
    frag="no"
    break
    
print(frag)

Submission status: Runtime Error

Solution code:
S = list(S)
print('yes' if len(set(S)) == len(S) else 'no')

Submission status: Runtime Error

Solution code:
S = list(input())
s = set(S)

if len(s) == len(S):
    print('yes')
else:
    prirnt('no')

Submission status: Runtime Error

Solution code:
S = input()
alpha = lambda c:chr(c+96)
List = []
for i in range(len(S)):
  tmp = S[i]
  List.append[tmp]
for k in range(1,27):
  if(List.count(alpha(k)) <= 1):
    pass
  else:
    print("no")
    exit()
print("yes")

Submission status: Runtime Error

Solution code:

S = input()

print("yes" if set(len(S))==len(S) else "no")

Submission status: Runtime Error

Solution code:
s = input()
fre = [0] * 27
for ch in s:
  fre[ord(ch)] += 1
  if fre[ord(ch)] > 1:
    print("no")
    exit()
print("yes")

Submission status: Runtime Error

Solution code:
s = input()
l = []
for i in range(len(s)):
    a = s[i]
    l.append(a)
ans = 0
for j in range(1,len(s)+1):
    if l[j] == l[j-1]:
        ans += 1
    else:
        ans += 0
if ans == 0:
    print('yes')
else:
    print('no')

Submission status: Runtime Error

Solution code:
S = input()
A = [0]*len(S)
for i in range(len(S)):
  A[S[i]] += 1
if max(A) == 1:
  print("yes")
else:
  print("no")

Submission status: Runtime Error

Solution code:
s=input()
import collections
c = collections.Counter(l)

for i in c.values():
  if i!=1:
    print("no")
    exit()
print("yes")

Submission status: Runtime Error

Solution code:
s = input().split('')
s.sort()
for i in range(len(s)-1):
  if s[i+1] == s[i]:
    print('no')
    exit()
    
print('yes')

Submission status: Runtime Error

Solution code:
s = input()
s.sort()
for i in range(len(s)-1):
  if s[i+1] == s[i]:
    print('no')
    
print('yes')

Submission status: Runtime Error

Solution code:
s = input()
if len(s)==len(set(s)):
  print('yes')
else:
  print('no)

Submission status: Runtime Error

Solution code:
s = input()
if len(s)==set(s):
  print('yes')
else:
  print('no)

Submission status: Runtime Error

Solution code:
s = sorted(input())
x = len(s)
for i in range(s-1):
  if s[i+1] ==s[i]:
    print('no')
    exit()
print('yes')

Submission status: Runtime Error

Solution code:
s = input()
print("no" if len(s) - set(s) else "yes")

Submission status: Runtime Error

Solution code:
s = input()
print("no" if len(s) - set(s) == 0 else "yes")

Submission status: Runtime Error

Solution code:
s = list(input())
print("yes" is len(s) == len(set(s)) else "no")

Submission status: Runtime Error

Solution code:
s=input()
x={}
for i in s:
  if i in x:
    print('no')
    exit()
  else:
    x.add(i)
print('yes')

Submission status: Runtime Error

Solution code:
s = list(str(input()))
s1 = list(set(s1))

print('yes' if len(s)==len(s1) else 'no')

Submission status: Runtime Error

Solution code:
#include<iostream>
#include<string>
using namespace std;
int main(){
	string a ,b;
    b="yes";
    cin>>a;
    for (int i=0;i<a.size();i++){
        for (int j=i+1;j<a.size();j++){
            if(a.at(i)==a.at(j)){
                b="no";
                break;
            }
        }
    }
    cout<<b<<endl;
	return 0;
}

Submission status: Runtime Error

Solution code:
#include<bits/stdc++.h>
using namespace std;

using ll=long long; 

void solve(){
	string s;
	cin>>s;
	sort(s.begin(), s.end());
	for(int i=1; i<s.size(); i++){
		if(s[i]==s[i-1]){
			cout<<"no"<<endl;
			return;
		}
	}
	cout<<"yes"<<endl;
}

signed main(){
	//while(1)
	solve();
}

Submission status: Runtime Error

Solution code:
from collections import Counter
l = list(input())
c = Counter(l)
if max(c) >= 2:
    print('yes')
else:
    print('no')

Submission status: Runtime Error

Solution code:
s = input()
s2 = [*s]
s3 = list(set(s2))
print('yes' if len(s2) == len(s3) else 'no')

Submission status: Runtime Error

Solution code:
sl = list(input())
s2 = set(s1)
if len(s1) == len(s2):
  print("yes")
elif len(s1) != len(s2):
  print("no")

Submission status: Runtime Error

Solution code:
s = input()
s_set = set(s)
f = True
for i in s_set:
  if s.count(i) >= 2:
    f = False
  	break
if f:
  print("Yes")
else:
  print("No")

Submission status: Runtime Error

Solution code:
a=input()
print("yes" if len(set(a))=len(a) else "no")

Submission status: Runtime Error

Solution code:
s = str(input())
if len(s)==(len(set(s)):
    ans = "yes"
else:
    ans = "no"
print(ans)

Submission status: Runtime Error

Solution code:
s=input(s)
S=list(s)
b = len(S)
a =len(set(S))
if a==b: print("yes")
else: print("no")

Submission status: Runtime Error

Solution code:
s = input()
ns = sorted(s)
ans = 'yes'
for i in range(len(s)):
  if s[i] == s[i+1]:
    ans = 'no'
print(ans)

Submission status: Runtime Error

Solution code:
s = input()
ns = sorted(s)
ans = yes
for i in range(len(s)-1):
  if s[i] == s[i+1]:
    ans = no
print(ans)

Submission status: Runtime Error

Solution code:
S=input()
if len(S)==len(set(list(S))):
  print('yes'):
else:
  print('no')

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush
import math
import itertools
import random
 
# NO, PAY-PAY
#import numpy as np
#import statistics
#from statistics import mean, median,variance,stdev
 
def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    A,B = inputMap()
    
    tmp = A+B
    
    if tmp < 11:
        print(tmp)
    else:
        print("error")
    
        
if __name__ == "__main__":
	main()

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int,input().split()))
Ma = max(A)
Mi = min(A)
print(Ma-Mi)

Submission status: Runtime Error

Solution code:
s = input()
print("yes" if len(s) = len(set(s))) else "not")

Submission status: Runtime Error

Solution code:

S= input()
B=set(S)
​
if len(S)==len(B):
  print("yes")
  
else:
  print("no")

Submission status: Runtime Error

Solution code:
s=input()

k=list(s)
m=list(set(l))

if len(k)==len(m):
  print("yes")
else:
  print("no")

Submission status: Runtime Error

Solution code:
#ABC063B
S = input()
all_dif = True
for i in range(len(S)):
    for j in range(i+1, len(S)):
        if S[i] == S[i+j]:
            all_dif = False
if all_dif:
    print("yes")
else:
    print("no")

Submission status: Runtime Error

Solution code:
s=input()
S=[]
for i in range(len(s)):
  S.append(s[i])
print("yes" if len(setS))==len(s) else "No")

Submission status: Runtime Error

Solution code:
s=input()
a={}
ans="yes"
for i in range(len(s)):
  if s[i] in a:
    ans="no"
    break
  a.add(s[i])
print(ans)

Submission status: Runtime Error

Solution code:
s=input()
a={}
ans="yes"
for i in range(len(s)):
  if s[i] in a:
    ans="no"
    break
  a=a|{s[i]}
print(ans)

Submission status: Runtime Error

Solution code:
s=input()
a={}
ans="yes"
for i in range(len(s)):
  if s[i] in a:
    ans="no"
    break
  a+={s[i]}
print(ans)

Submission status: Runtime Error

Solution code:
s = input()
a = 0
for i in range(len(s)):
  a = a + s.count(s[i])
if a = len(s):
  print("yes")
else:
  print("no")

Submission status: Runtime Error

Solution code:
n=input()
l=list(map(int,input().split()))
print(max(l)-min(l))

Submission status: Runtime Error

Solution code:
s=input()
from collections import Counter
c=Counter(s)
if most_common(c)[0]>1:
  print("no")
else:
  print("yes")

Submission status: Runtime Error

Solution code:
n = input()

m = list(n.copy)

#print(m)
if len(set(m)) == len(m):
  print("yes")
else:
  print("no")

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
print(a+b if a+b<10 else "error")

Submission status: Runtime Error

Solution code:
s = input()
ss = set(s)s = input()
li_s = list(s) 
li_ss= list(set(s)) 

if len(li_s)==len(li_ss):
  print("yes")
else:
  print("no")

Submission status: Runtime Error

Solution code:
s=input()
for i in range(len(s)-1):
  for j in range(i+1,len(s)+1):
    if s[i]==s[j]:
      print("no")
      exit()
print("yes")

Submission status: Runtime Error

Solution code:
s=input()
for i in range(len(s)-1):
  for j in range(i+1,len(s)+1):
    if A[i]==A[j]:
      print("no")
      exit()
print("yes")

Submission status: Runtime Error

Solution code:
S=[for i in input()]
print('yes' if len(S)==len(set(S)) else 'no')

Submission status: Runtime Error

Solution code:
print("no"if len(set(input()))!=len(input()) else"yes")

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-


def main():
    """Function."""
    s = str(input())

    check = set()
    for i in range(s):
        check.add(s[i])

    if len(s) != len(s):
        print("no")
    else:
        print("yes")


if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
s = input()
a = [i for i in s]
s = sorted(a)
b = 1
for i in range(len(s)-1):
  if s[i] == s[i+1]:
    b = 0
print("yes") if b = 1 else print("no")

Submission status: Runtime Error

Solution code:
s = input()
a = [i for i in s]
s = sorted(a)
b = 1
for i in range(len(s)-1):
  if s[i] == s[i+1]:
    b = 0
    break
print("yes") if b = 1 else print("no")

Submission status: Runtime Error

Solution code:
s = [i for i in input()]
print("yes" len(s) == len(set(s)) else "no")

Submission status: Runtime Error

Solution code:
s = list(input())
if("yes" if len(s) == len(set(s)) else "no")

Submission status: Runtime Error

Solution code:
S = input()

li = set()
for i in len(S):
  li.add(S[i])

if len(S) == len(li):
  print("yes")
else:
  print("no")

Submission status: Runtime Error

Solution code:
def main11():
    str = input("");
    flag = True;
    for i in range((len(str)-1)):
        for j in range(i+1,len(str)):
            if(str[i]==str[j]):
                flag = False;
    if flag:
        print(yes);
    else:
        print(no);



if __name__ == '__main__':
    main11()

Submission status: Runtime Error

Solution code:
s = input()
if s == str((set(s)):
    print("yes")
else:
    print("no")

Submission status: Runtime Error

Solution code:
s = [x for x in input()]
print('yes' if all(s.count(c)==1 for c in s else 'no')

Submission status: Runtime Error

Solution code:
s = input()
s_num = len(s)
for i in range(s_num):
  if s[i] == s[i + 1]:
    print("no")
  else:
    print("yes")

Submission status: Runtime Error

Solution code:
S = raw_input()
lis = list(S)
for i in lis:
	mat = []
	if i in S:
		print "no"
		break
	mat.append(i)
	else:
		print "yes"

Submission status: Runtime Error

Solution code:
S = raw_input()
lis = list(S)
for i in lis:
	mat = []
	if i in S
		print "no"
		break
	mat.append(i)
else:
	print "yes"

Submission status: Runtime Error

Solution code:
S = raw_input()
lis = list(S)
for i in lis:
	mat = []
	if i in S
		print "no"
		break
	mat.add(i)
else:
	print "yes"

Submission status: Runtime Error

Solution code:
S = raw_input()
mat = []
lis = list(S)
for i in lis:
	if i in S
		print "no"
		break
	mat.add(i)
else:
	print "yes"

Submission status: Runtime Error

Solution code:
import sys
s = input().rstrip()
if len(s) == len(set(list(s))):
    print(“yes\n”)
else:
    print(“no\n”)

Submission status: Runtime Error

Solution code:
import sys
s = sys.stdin.read().rstrip()
if len(s) == len(set(list(s))):
    print(“yes\n”)
else:
    print(“no\n”)

Submission status: Runtime Error

Solution code:
import sys
s = sys.stdin.read().rstrip()
if len(s) == len(set(list(s))):
    print(“yes”)
else:
    print(“no”)

Submission status: Runtime Error

Solution code:
a = input()
ls = {}
for i in range(ord('a'), ord('z')):
    ls[chr(i)] = 0

for i in a:
    ls[i]+=1;

f = 1;
for i in a:
    if ls[i] > 1:
        f = 0
        break
if f:
    print("yes")
else:
    print("no")

Submission status: Runtime Error

Solution code:
s = input()

str=[]
for char in s:
    str.append(char)

str.sort()

for char in str:
    if str.count(char) > 1:
        print "no"
        break
else:
    print "yes"

Submission status: Runtime Error

Solution code:
import sys
from collections import Counter

print('yes' if all([True if x <= 1 else False for x in list(Counter(sys.argv[1]).values())]) else 'no')

Submission status: Runtime Error

Solution code:
s=list(input())
s.sort()
j=0
if len(s) == 1:j=0
else: j=1
for i in s:
    if j == len(s)-1:print("yes")
        break
    if i == s[j]:print("no")
        break
    j+=1

Submission status: Runtime Error

Solution code:
s = str(input())
f = "yes"
for i in range(0,len(s)):
    if s.count(i) != 1:
        f = "no"
        break
print(f)

Submission status: Runtime Error

Solution code:
#ABC063B

s=raw_input()
l1=len(s)
l2=len(set(s))
if li==l2:
 print 'yes'
else:
 print 'no'

Submission status: Runtime Error

Solution code:
文字列を取り込む。
文字数を数える。
文字列をソートする。
最初の文字と二番目の文字が同じかどうか確認する。
同じならば'NO'を出力する。
違うならば二番目の文字列と三番目の文字列が同じかどうか確認する。
同じならば'NO'を出力する。
・
・
・
最後から一つ前の文字と最後の文字を確認して違うならば
'YES'を出力する。

Submission status: Runtime Error

Solution code:
S=list(input())
sorted(S)
nd=0
while nd==0 and i<len(S):
    if S[i]==S[i+1]:
         nd=1
    i+=1
if nd==1:
    print ("no")
else:
    print ("yes")

Submission status: Runtime Error

Solution code:
s = raw_input()

ans = "yes"

for i in s:
    if s.count(s[i]) != 1:
        ans = "no"

print ans

Submission status: Runtime Error

Solution code:
 = list(map(str, raw_input().split())[0])
S.sort()

flag = True
for i in range(len(S) - 1):
    if S[i] == S[i + 1]:
        flag = False
        break

if flag:
    print("yes")
else:
    print("no")

Submission status: Runtime Error

Solution code:
s = input()
ans=0
for i in range(len(s)):
  if s[i] == s[i+1]:
    ans += 1
if ans > 0:
  print("no")
else:
  print("yes")