結果

問題 No.2201 p@$$w0rd
ユーザー mobchan
提出日時 2023-04-29 16:12:55
言語 C#
(.NET 8.0.404)
結果
WA  
実行時間 -
コード長 455 bytes
コンパイル時間 11,968 ms
コンパイル使用メモリ 168,500 KB
実行使用メモリ 185,244 KB
最終ジャッジ日時 2024-11-18 11:34:33
合計ジャッジ時間 14,447 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 18 WA * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (100 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 System.Collections.Generic;
using System.Linq;

class Program
{
    static void Main(string[] args)
    {
        var S = Console.ReadLine();

        var suuji = S.Where(x => x == 'l').Count();
        suuji += S.Where(x => x == 'o').Count();

        var kigou = S.Where(x => x == 'a').Count();
        kigou += S.Where(x => x == 's').Count();

        Console.WriteLine((Math.Pow(2, suuji) - 1) * (Math.Pow(2, kigou) - 1));
    }
}
0