結果

問題 No.1157 Many Quotients easy
ユーザー phspls
提出日時 2020-08-12 14:15:55
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 312 bytes
コンパイル時間 13,695 ms
コンパイル使用メモリ 378,280 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-09 18:21:48
合計ジャッジ時間 14,937 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

use std::collections::HashSet;

fn main() {
    let mut n = String::new();
    std::io::stdin().read_line(&mut n).ok();
    let n: usize = n.trim().parse().unwrap();

    let mut result: HashSet<usize> = HashSet::new();
    for i in 1..=n {
        result.insert(n / i);
    }
    println!("{}", result.len());
}
0