結果

問題 No.175 simpleDNA
ユーザー simansiman
提出日時 2015-04-03 00:26:53
言語 Ruby
(3.3.0)
結果
AC  
実行時間 80 ms / 1,000 ms
コード長 162 bytes
コンパイル時間 37 ms
コンパイル使用メモリ 11,248 KB
実行使用メモリ 15,268 KB
最終ジャッジ日時 2023-09-17 03:49:21
合計ジャッジ時間 1,453 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,268 KB
testcase_01 AC 79 ms
15,264 KB
testcase_02 AC 80 ms
15,224 KB
testcase_03 AC 79 ms
15,096 KB
testcase_04 AC 78 ms
15,132 KB
testcase_05 AC 79 ms
15,040 KB
testcase_06 AC 79 ms
15,172 KB
testcase_07 AC 78 ms
15,168 KB
testcase_08 AC 79 ms
15,036 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:5: warning: assigned but unused variable - s
Syntax OK

ソースコード

diff #

class Yukicoder
  def initialize
    l = gets.chomp.to_i
    n = gets.chomp.to_i
    s = gets.chomp.split(' ')

    puts 2 ** (l - 3) * n
  end
end

Yukicoder.new
0