結果
問題 | No.2778 Is there Same letter? |
ユーザー |
|
提出日時 | 2024-07-10 17:28:17 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 48 ms / 2,000 ms |
コード長 | 240 bytes |
コンパイル時間 | 309 ms |
コンパイル使用メモリ | 82,404 KB |
実行使用メモリ | 53,888 KB |
最終ジャッジ日時 | 2024-07-10 17:28:19 |
合計ジャッジ時間 | 2,371 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 12 |
ソースコード
from collections import Counter def main(): N = int(input()) S = input() ctr_S = Counter(S) if any(v > 1 for v in ctr_S.values()): print("Yes") else: print("No") if __name__ == "__main__": main()