結果
| 問題 |
No.2201 p@$$w0rd
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-02-03 21:24:17 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 584 bytes |
| コンパイル時間 | 904 ms |
| コンパイル使用メモリ | 110,492 KB |
| 実行使用メモリ | 25,812 KB |
| 最終ジャッジ日時 | 2024-07-02 19:06:11 |
| 合計ジャッジ時間 | 2,445 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 18 WA * 6 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
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));
}
}