結果

問題 No.2778 Is there Same letter?
コンテスト
ユーザー kou_kkk
提出日時 2024-11-29 12:32:37
言語 Nim
(2.2.10 + ACL)
コンパイル:
nim --nimcache=~ --hints:off -o:a.out -d:release cpp _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
+ 665µs
コード長 141 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 4,271 ms
コンパイル使用メモリ 69,840 KB
実行使用メモリ 9,848 KB
最終ジャッジ日時 2026-10-02 00:29:37
合計ジャッジ時間 6,098 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import tables

let
  n, s = readLine stdin
  cntTable = s.toCountTable
  (_, cnt) = cntTable.largest

echo:
  if cnt >= 2: "Yes"
  else: "No"
0