結果

問題 No.83 最大マッチング
ユーザー PicklesSuperiorPicklesSuperior
提出日時 2018-10-21 11:42:18
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 354 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 31,128 KB
実行使用メモリ 31,352 KB
最終ジャッジ日時 2024-04-29 20:15:01
合計ジャッジ時間 1,601 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

<?php
    $input = trim(fgets(STDIN));
    $onelen = $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