結果
問題 | No.175 simpleDNA |
ユーザー | swdamdr |
提出日時 | 2017-01-26 10:41:57 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 57 ms / 1,000 ms |
コード長 | 396 bytes |
コンパイル時間 | 3,394 ms |
コンパイル使用メモリ | 98,824 KB |
実行使用メモリ | 23,284 KB |
最終ジャッジ日時 | 2023-08-24 23:18:24 |
合計ジャッジ時間 | 3,646 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 57 ms
21,052 KB |
testcase_01 | AC | 57 ms
20,864 KB |
testcase_02 | AC | 57 ms
21,192 KB |
testcase_03 | AC | 57 ms
23,284 KB |
testcase_04 | AC | 57 ms
21,044 KB |
testcase_05 | AC | 57 ms
19,140 KB |
testcase_06 | AC | 57 ms
23,172 KB |
testcase_07 | AC | 57 ms
21,056 KB |
testcase_08 | AC | 57 ms
21,224 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { int l = int.Parse(Console.ReadLine()); int n = int.Parse(Console.ReadLine()); string[] s = Console.ReadLine().Split(); int len = l - s[0].Length; Console.WriteLine((int)(Math.Pow(2, len) * n)); Console.Read(); } }