結果

問題 No.83 最大マッチング
コンテスト
ユーザー papinianus
提出日時 2016-06-07 15:48:58
言語 PHP
(8.5.9)
コンパイル:
php -l _filename_
実行:
php _filename_
結果
AC  
実行時間 35 ms / 5,000 ms
+ 881µs
コード長 172 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 42 ms
コンパイル使用メモリ 37,000 KB
実行使用メモリ 38,092 KB
最終ジャッジ日時 2026-09-12 04:37:36
合計ジャッジ時間 1,714 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #
raw source code

<?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