結果
| 問題 |
No.2778 Is there Same letter?
|
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2024-06-07 22:44:37 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 2,000 ms |
| コード長 | 177 bytes |
| コンパイル時間 | 863 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 53,760 KB |
| 最終ジャッジ日時 | 2024-12-26 09:06:26 |
| 合計ジャッジ時間 | 1,952 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
from collections import Counter
N = int(input())
S = input()
freq = Counter(S)
for v in freq.values():
if v >= 2:
print('Yes')
break
else:
print('No')
norioc