結果
| 問題 | No.2778 Is there Same letter? |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-03-24 14:19:11 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 94 ms / 2,000 ms |
| コード長 | 240 bytes |
| 記録 | |
| コンパイル時間 | 291 ms |
| コンパイル使用メモリ | 21,412 KB |
| 実行使用メモリ | 15,864 KB |
| 最終ジャッジ日時 | 2026-07-07 21:02:24 |
| 合計ジャッジ時間 | 2,858 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
import collections
n = int(input())
s = input()
c = collections.Counter(s)
dict_c = c.values()
dict_l = list(dict_c)
cnt = 0
for i in range(len(dict_l)):
if dict_l[i] != 1:
cnt += 1
if cnt != 0:
print("Yes")
else:
print("No")