結果
| 問題 | No.175 simpleDNA |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-02 17:18:16 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 51 ms / 1,000 ms |
| コード長 | 377 bytes |
| 記録 | |
| コンパイル時間 | 8,054 ms |
| コンパイル使用メモリ | 169,800 KB |
| 実行使用メモリ | 185,540 KB |
| 最終ジャッジ日時 | 2025-12-02 17:18:25 |
| 合計ジャッジ時間 | 9,536 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (113 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
class Program
{
static void Main(string[] args)
{
int length = int.Parse(Console.ReadLine()!);
int count = int.Parse(Console.ReadLine()!);
string[] input = Console.ReadLine()!.Split(' ');
int ans = 1;
for (int i = 0; i < length - 3; i++)
{
ans *= 2;
}
Console.WriteLine(ans * count);
}
}