Result

AC

Duration

1174ms

Code [DL]

use std::io::*;fn main(){let i=&mut[0;9];stdin().read(i);let(h,w)=((i[0]-48)*10+i[1]-49,(i[3]-48)*10+i[4]-50);for i in 0..=h{println!("*{}*",if i%h>0{" "}else{"*"}.repeat(w as _))}}

stdin

90
58

stdout

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

stderr

warning: unused `std::result::Result` which must be used
 --> /tmp/code.rs:1:42
  |
1 | use std::io::*;fn main(){let i=&mut[0;9];stdin().read(i);let(h,w)=((i[0]-48)*10+i[1]-49,(i[3]-48)*10+i[4]-50);for i in 0..=h{println!("*{}*",if i%h>0{" "}else{"*"}.repeat(w as _))}}
  |                                          ^^^^^^^^^^^^^^^^
  |
  = note: #[warn(unused_must_use)] on by default
  = note: this `Result` may be an `Err` variant, which should be handled