結果

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

ソースコード

diff #

use std::io;

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

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

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