結果

問題 No.1700 floor X
ユーザー seinyan
提出日時 2021-10-28 16:18:19
言語 Rust
(1.83.0 + proconio)
結果
RE  
実行時間 -
コード長 365 bytes
コンパイル時間 12,271 ms
コンパイル使用メモリ 400,612 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-07 08:01:02
合計ジャッジ時間 14,204 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 20 RE * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::io;

fn main() {
    let n = read_input();
    let mut v: Vec<i32> = Vec::new();

    for _i in 0..n {
        v.push(read_input());
    }
    for value in v {
        println!("{}", (value as f64).sqrt().floor());
    }
}

fn read_input() -> i32 {
    let mut s = String::new();
    io::stdin().read_line(&mut s).unwrap();
    s.trim().parse().unwrap()
}
0