結果
| 問題 | No.2778 Is there Same letter? |
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2024-06-07 22:44:37 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 29 ms / 2,000 ms |
| コード長 | 177 bytes |
| 記録 | |
| コンパイル時間 | 476 ms |
| コンパイル使用メモリ | 85,760 KB |
| 実行使用メモリ | 53,376 KB |
| 最終ジャッジ日時 | 2026-06-01 06:55:00 |
| 合計ジャッジ時間 | 1,560 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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