結果

問題 No.83 最大マッチング
ユーザー papinianuspapinianus
提出日時 2016-06-07 15:48:58
言語 PHP
(8.3.4)
結果
AC  
実行時間 41 ms / 5,000 ms
コード長 172 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 32,276 KB
実行使用メモリ 32,016 KB
最終ジャッジ日時 2024-04-17 05:41:09
合計ジャッジ時間 1,232 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
30,964 KB
testcase_01 AC 40 ms
30,584 KB
testcase_02 AC 41 ms
30,696 KB
testcase_03 AC 40 ms
30,904 KB
testcase_04 AC 39 ms
30,624 KB
testcase_05 AC 39 ms
30,944 KB
testcase_06 AC 39 ms
31,048 KB
testcase_07 AC 39 ms
30,796 KB
testcase_08 AC 40 ms
30,860 KB
testcase_09 AC 40 ms
31,064 KB
testcase_10 AC 41 ms
31,504 KB
testcase_11 AC 41 ms
31,884 KB
testcase_12 AC 41 ms
32,016 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$total = trim(fgets(STDIN));
$digits = floor($total/2);
$rest = $total % 2;
$ans = array_fill(0, $digits, 1);
if($rest) {$ans[0] = 7;}
echo implode('', $ans).PHP_EOL;
0