by@statiolake
AC
1188ms
use std::io::*;fn main(){let i=&mut[0;9];stdin().read(i);let(h,w)=((i[0]-48)*10+i[1]-48,(i[3]-48)*10+i[4]-50);for i in 1..=h{println!("*{}*",if i==1||i==h{"*"}else{" "}.repeat(w as _))}}88 77
***************************************************************************** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *****************************************************************************
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]-48,(i[3]-48)*10+i[4]-50);for i in 1..=h{println!("*{}*",if i==1||i==h{"*"}else{" "}.repeat(w as _))}}
| ^^^^^^^^^^^^^^^^
|
= note: #[warn(unused_must_use)] on by default
= note: this `Result` may be an `Err` variant, which should be handled