結果

問題 No.83 最大マッチング
ユーザー yuma25689yuma25689
提出日時 2016-01-02 22:41:37
言語 Perl
(5.38.2)
結果
WA  
実行時間 -
コード長 274 bytes
コンパイル時間 471 ms
コンパイル使用メモリ 5,328 KB
実行使用メモリ 5,476 KB
最終ジャッジ日時 2023-10-19 14:30:45
合計ジャッジ時間 1,280 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

$stickCount=<STDIN>;
chomp($stickCount);

$digitCount = $stickCount / 2;
$rest = $stickCount % 2;
$lastEqualSeven = (0<$rest);


$strCount = "1";
if( $lastEqualSeven )
{
	$strCount = "7";
}
for( $i=1; $i < $digitCount; $i++ )
{
	$strCount .= "1";
}

print("${strCount}\n");
0