結果

問題 No.83 最大マッチング
ユーザー PicklesSuperiorPicklesSuperior
提出日時 2018-10-21 11:51:35
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 359 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 32,144 KB
実行使用メモリ 32,528 KB
最終ジャッジ日時 2024-04-29 20:15:03
合計ジャッジ時間 1,518 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

<?php
    $input = trim(fgets(STDIN));
    $onelen = (int)$input/2;
    $rest = $input%2;
    #print($onelen . " " . $rest . "\n");
    if($rest == 1){
        for($i = 1;$i < $onelen;$i++){
            print(1);
        }
        print(7 . "\n");
    }else{
        for($i = 0;$i < $onelen;$i++){
            print(1);
        }
        print("\n");
    }
?>
0