結果

問題 No.83 最大マッチング
コンテスト
ユーザー しめはじめ
提出日時 2019-05-23 11:03:48
言語 PHP
(843.2)
結果
WA  
実行時間 -
コード長 170 bytes
コンパイル時間 2,692 ms
コンパイル使用メモリ 32,144 KB
実行使用メモリ 32,788 KB
最終ジャッジ日時 2024-09-17 09:42:16
合計ジャッジ時間 3,835 ms
ジャッジサーバーID
(参考情報)
judge5 / judge6
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other WA * 10
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$input = trim(fgets(STDIN));
$output = ( $input % 2 ) == 1 ? ( str_repeat( '1', ( $input / 2 ) - 2 ).'7' ) : str_repeat( '1', (($input + 2 ) / 3)  );
print $output;
0