結果

問題 No.2707 Bag of Words Encryption
ユーザー 👑 kakel-sankakel-san
提出日時 2024-04-09 22:00:40
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 691 bytes
コンパイル時間 9,670 ms
コンパイル使用メモリ 170,184 KB
実行使用メモリ 185,932 KB
最終ジャッジ日時 2024-04-09 22:00:53
合計ジャッジ時間 9,294 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
29,184 KB
testcase_01 AC 48 ms
29,168 KB
testcase_02 AC 61 ms
30,720 KB
testcase_03 AC 59 ms
30,208 KB
testcase_04 AC 56 ms
30,840 KB
testcase_05 AC 57 ms
30,720 KB
testcase_06 AC 57 ms
30,572 KB
testcase_07 AC 58 ms
31,104 KB
testcase_08 AC 57 ms
30,848 KB
testcase_09 AC 57 ms
30,848 KB
testcase_10 AC 58 ms
30,592 KB
testcase_11 AC 68 ms
30,848 KB
testcase_12 AC 69 ms
31,104 KB
testcase_13 AC 84 ms
30,720 KB
testcase_14 AC 57 ms
30,720 KB
testcase_15 AC 60 ms
30,592 KB
testcase_16 AC 60 ms
185,932 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (89 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;

class Program
{
    static int NN => int.Parse(ReadLine());
    static int[] NList => ReadLine().Split().Select(int.Parse).ToArray();
    static int[] NMi => ReadLine().Split().Select(c => int.Parse(c) - 1).ToArray();
    static int[][] NMap(int n) => Enumerable.Repeat(0, n).Select(_ => NMi).ToArray();
    public static void Main()
    {
        Solve();
    }
    static void Solve()
    {
        var n = NN;
        var s = ReadLine();
        var count = new int[26];
        foreach (var c in s) ++count[c - 'A'];
        WriteLine(string.Concat(count));
    }
}
0