結果

問題 No.83 最大マッチング
ユーザー 綾地寧々綾地寧々
提出日時 2015-06-03 16:22:21
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 163 bytes
コンパイル時間 921 ms
コンパイル使用メモリ 18,532 KB
実行使用メモリ 18,956 KB
最終ジャッジ日時 2023-09-20 18:59:20
合計ジャッジ時間 1,773 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

<?php
$n = trim(fgets(STDIN));
for ( $i=0; $i < (($n % 2) ? (floor($n / 2) - 1) : floor($n / 2)); $i++ ) {
	echo "1";
}
if ( $n % 2 ) {
	echo "7";
}
echo PHP_EOL;
0