結果
| 問題 | 
                            No.83 最大マッチング
                             | 
                    
| コンテスト | |
| ユーザー | 
                             PicklesSuperior
                         | 
                    
| 提出日時 | 2018-10-21 11:51:35 | 
| 言語 | PHP  (843.2)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 359 bytes | 
| コンパイル時間 | 125 ms | 
| コンパイル使用メモリ | 32,148 KB | 
| 実行使用メモリ | 32,404 KB | 
| 最終ジャッジ日時 | 2024-11-19 03:19:19 | 
| 合計ジャッジ時間 | 1,439 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 WA * 1 | 
| other | AC * 4 WA * 6 | 
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?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");
    }
?>
            
            
            
        
            
PicklesSuperior