by@paradigm_9
AC
1533ms
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 _))}}
49 65
***************************************************************** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *****************************************************************
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