結果

問題 No.2778 Is there Same letter?
ユーザー sasa8uyauya
提出日時 2024-06-07 21:45:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 51 ms / 2,000 ms
コード長 120 bytes
コンパイル時間 741 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 51,712 KB
最終ジャッジ日時 2024-12-26 07:36:49
合計ジャッジ時間 2,271 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
s=input()
d=set()
for c in s:
	if c not in d:
		d.add(c)
	else:
		print("Yes")
		break
else:
	print("No")
0