結果

問題 No.83 最大マッチング
ユーザー しめはじめしめはじめ
提出日時 2019-05-23 11:09:03
言語 PHP
(8.3.4)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 174 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 32,716 KB
実行使用メモリ 32,848 KB
最終ジャッジ日時 2023-10-17 11:25:21
合計ジャッジ時間 1,332 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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