結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-06-07 15:48:58 |
| 言語 | PHP (843.2) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 5,000 ms |
| コード長 | 172 bytes |
| コンパイル時間 | 457 ms |
| コンパイル使用メモリ | 32,088 KB |
| 実行使用メモリ | 32,396 KB |
| 最終ジャッジ日時 | 2024-10-08 17:20:44 |
| 合計ジャッジ時間 | 1,519 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php
$total = trim(fgets(STDIN));
$digits = floor($total/2);
$rest = $total % 2;
$ans = array_fill(0, $digits, 1);
if($rest) {$ans[0] = 7;}
echo implode('', $ans).PHP_EOL;