結果

問題 No.2201 p@$$w0rd
ユーザー 👑 kakel-sankakel-san
提出日時 2023-02-03 21:24:17
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 584 bytes
コンパイル時間 2,121 ms
コンパイル使用メモリ 65,356 KB
実行使用メモリ 22,532 KB
最終ジャッジ日時 2023-09-15 16:44:34
合計ジャッジ時間 3,525 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
20,536 KB
testcase_01 AC 50 ms
20,456 KB
testcase_02 AC 51 ms
20,492 KB
testcase_03 AC 51 ms
20,592 KB
testcase_04 AC 51 ms
20,356 KB
testcase_05 AC 51 ms
22,460 KB
testcase_06 AC 51 ms
20,456 KB
testcase_07 WA -
testcase_08 AC 51 ms
20,504 KB
testcase_09 AC 51 ms
20,564 KB
testcase_10 WA -
testcase_11 AC 51 ms
20,656 KB
testcase_12 WA -
testcase_13 AC 51 ms
20,584 KB
testcase_14 AC 51 ms
20,648 KB
testcase_15 WA -
testcase_16 AC 51 ms
22,468 KB
testcase_17 AC 52 ms
20,588 KB
testcase_18 AC 50 ms
20,408 KB
testcase_19 AC 50 ms
22,532 KB
testcase_20 AC 50 ms
20,644 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 51 ms
20,588 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;
class Program
{
    static int[] NList => ReadLine().Split().Select(int.Parse).ToArray();
    public static void Main()
    {
        Solve();
    }
    static void Solve()
    {
        var s = ReadLine();
        var nums = 0;
        var codes = 0;
        foreach (var si in s)
        {
            if (si == 'l' || si == 'o') ++nums;
            if (si == 'a' || si == 's') ++codes;
        }
        WriteLine(((1 << nums) - 1) * ((1 << codes) - 1));
    }
}
0