結果
| 問題 | No.2778 Is there Same letter? |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-06-07 22:28:54 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 58 ms / 2,000 ms |
| コード長 | 234 bytes |
| 記録 | |
| コンパイル時間 | 448 ms |
| コンパイル使用メモリ | 82,560 KB |
| 実行使用メモリ | 53,504 KB |
| 最終ジャッジ日時 | 2024-12-26 08:37:02 |
| 合計ジャッジ時間 | 1,971 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
from collections import Counter
def main():
N = int(input())
S = input()
c = Counter(S)
if max(c.values()) > 1:
print("Yes")
else:
print("No")
if __name__ == "__main__":
main()