結果

問題 No.83 最大マッチング
ユーザー ねずねず
提出日時 2018-01-28 09:32:34
言語 PHP
(8.3.4)
結果
AC  
実行時間 8 ms / 5,000 ms
コード長 134 bytes
コンパイル時間 658 ms
コンパイル使用メモリ 11,864 KB
実行使用メモリ 13,792 KB
最終ジャッジ日時 2023-08-28 12:58:06
合計ジャッジ時間 1,461 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 7 ms
12,192 KB
testcase_01 AC 7 ms
12,280 KB
testcase_02 AC 7 ms
12,180 KB
testcase_03 AC 7 ms
12,128 KB
testcase_04 AC 7 ms
12,184 KB
testcase_05 AC 7 ms
12,184 KB
testcase_06 AC 7 ms
12,188 KB
testcase_07 AC 7 ms
12,172 KB
testcase_08 AC 7 ms
12,132 KB
testcase_09 AC 7 ms
12,232 KB
testcase_10 AC 8 ms
13,784 KB
testcase_11 AC 8 ms
13,752 KB
testcase_12 AC 8 ms
13,792 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$n = trim(fgets(STDIN));
$ans = implode(array_fill(0, $n % 2 ? ($n - 3) / 2 : $n / 2, '1'));
echo $n % 2 ? '7' . $ans : $ans;
?>
0