結果

問題 No.83 最大マッチング
ユーザー PicklesSuperiorPicklesSuperior
提出日時 2018-10-21 11:54:43
言語 PHP
(8.3.4)
結果
AC  
実行時間 67 ms / 5,000 ms
コード長 375 bytes
コンパイル時間 150 ms
コンパイル使用メモリ 12,180 KB
実行使用メモリ 12,268 KB
最終ジャッジ日時 2023-08-12 05:40:18
合計ジャッジ時間 1,122 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
12,220 KB
testcase_01 AC 8 ms
12,156 KB
testcase_02 AC 8 ms
12,156 KB
testcase_03 AC 7 ms
12,268 KB
testcase_04 AC 7 ms
12,140 KB
testcase_05 AC 7 ms
12,160 KB
testcase_06 AC 8 ms
12,168 KB
testcase_07 AC 8 ms
12,160 KB
testcase_08 AC 8 ms
12,204 KB
testcase_09 AC 15 ms
12,200 KB
testcase_10 AC 49 ms
12,204 KB
testcase_11 AC 67 ms
12,192 KB
testcase_12 AC 67 ms
12,160 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){
        print(7);
        for($i = 1;$i < $onelen;$i++){
            print(1);
        }
        print("\n");
    }else{
        for($i = 0;$i < $onelen;$i++){
            print(1);
        }
        print("\n");
    }
?>
0