結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
31,244 KB
testcase_01 AC 39 ms
30,996 KB
testcase_02 AC 42 ms
31,200 KB
testcase_03 AC 42 ms
31,148 KB
testcase_04 AC 42 ms
30,988 KB
testcase_05 AC 40 ms
30,800 KB
testcase_06 AC 40 ms
31,000 KB
testcase_07 AC 39 ms
31,056 KB
testcase_08 AC 40 ms
31,056 KB
testcase_09 AC 47 ms
30,844 KB
testcase_10 AC 85 ms
31,376 KB
testcase_11 AC 102 ms
31,024 KB
testcase_12 AC 105 ms
31,300 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