結果

問題 No.175 simpleDNA
ユーザー togaerrortogaerror
提出日時 2015-04-04 17:02:21
言語 Perl
(5.38.2)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 201 bytes
コンパイル時間 510 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 5,100 KB
最終ジャッジ日時 2023-09-17 04:26:43
合計ジャッジ時間 1,117 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
4,820 KB
testcase_01 WA -
testcase_02 AC 4 ms
4,888 KB
testcase_03 AC 4 ms
4,884 KB
testcase_04 WA -
testcase_05 AC 4 ms
5,036 KB
testcase_06 AC 4 ms
5,012 KB
testcase_07 AC 4 ms
4,892 KB
testcase_08 AC 4 ms
4,864 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.pl syntax OK

ソースコード

diff #

#!/usr/bin/perl

use strict;
use warnings;

my $l = <>;
my $n = <>;
my $str = <>;
my $ans;

if($l == 3) {
	print "$n\n";
} else {
	$ans = $l - 3;
	$ans = 2**$ans;
	$ans *= $n;
	print "$ans\n";
}

exit;
0