Result

AC

Duration

1077ms

Code [DL]

<?php
for([$a,$b]=file('php://stdin');$i<$a;)echo str_pad("*",$b-1,"* "[++$i%$a>1])."*
";

stdin

70
68

stdout

********************************************************************
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
*                                                                  *
********************************************************************

stderr

PHP Notice:  Undefined variable: i in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  Undefined variable: i in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 2
PHP Notice:  String offset cast occurred in /volume/CODE on line 2