結果

問題 No.83 最大マッチング
ユーザー PicklesSuperiorPicklesSuperior
提出日時 2018-10-21 11:51:35
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 359 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 12,164 KB
実行使用メモリ 12,296 KB
最終ジャッジ日時 2023-08-12 05:40:15
合計ジャッジ時間 1,134 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 9 ms
12,132 KB
testcase_01 WA -
testcase_02 AC 8 ms
12,188 KB
testcase_03 WA -
testcase_04 AC 7 ms
12,228 KB
testcase_05 WA -
testcase_06 AC 7 ms
12,128 KB
testcase_07 WA -
testcase_08 AC 7 ms
12,164 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 66 ms
12,256 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