結果
問題 |
No.2778 Is there Same letter?
|
ユーザー |
![]() |
提出日時 | 2024-06-07 21:52:59 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 59 ms / 2,000 ms |
コード長 | 136 bytes |
コンパイル時間 | 397 ms |
コンパイル使用メモリ | 81,664 KB |
実行使用メモリ | 53,504 KB |
最終ジャッジ日時 | 2024-12-26 07:49:15 |
合計ジャッジ時間 | 1,986 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
from collections import Counter N = int(input()) S = input() counter = Counter(S) print("Yes" if 1 < max(counter.values()) else "No")