結果
問題 | No.83 最大マッチング |
ユーザー |
![]() |
提出日時 | 2018-10-21 11:54:43 |
言語 | PHP (843.2) |
結果 |
AC
|
実行時間 | 100 ms / 5,000 ms |
コード長 | 375 bytes |
コンパイル時間 | 110 ms |
コンパイル使用メモリ | 31,056 KB |
実行使用メモリ | 31,056 KB |
最終ジャッジ日時 | 2024-11-19 03:19:23 |
合計ジャッジ時間 | 1,461 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
コンパイルメッセージ
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){print(7);for($i = 1;$i < $onelen;$i++){print(1);}print("\n");}else{for($i = 0;$i < $onelen;$i++){print(1);}print("\n");}?>