結果

問題 No.83 最大マッチング
ユーザー しめはじめしめはじめ
提出日時 2019-05-23 11:03:48
言語 PHP
(8.2.11)
結果
WA  
実行時間 -
コード長 170 bytes
コンパイル時間 4,553 ms
コンパイル使用メモリ 32,560 KB
実行使用メモリ 32,844 KB
最終ジャッジ日時 2023-10-17 11:25:09
合計ジャッジ時間 4,161 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

<?php
$input = trim(fgets(STDIN));
$output = ( $input % 2 ) == 1 ? ( str_repeat( '1', ( $input / 2 ) - 2 ).'7' ) : str_repeat( '1', (($input + 2 ) / 3)  );
print $output;
0