結果
| 問題 | 
                            No.2778 Is there Same letter?
                             | 
                    
| コンテスト | |
| ユーザー | 
                             𖧱𖦸𖥩𖥣𖥩𖥣
                         | 
                    
| 提出日時 | 2024-06-08 09:42:34 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 36 ms / 2,000 ms | 
| コード長 | 126 bytes | 
| コンパイル時間 | 744 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,624 KB | 
| 最終ジャッジ日時 | 2024-12-27 11:47:13 | 
| 合計ジャッジ時間 | 1,970 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 12 | 
ソースコード
import sys
n = int(input())
s = input()
ls = []
for i in s:
	if i in ls:
		print("Yes")
		sys.exit()
	ls.append(i)
print("No")
            
            
            
        
            
𖧱𖦸𖥩𖥣𖥩𖥣