結果

問題 No.537 ユーザーID
ユーザー
提出日時 2024-05-25 23:48:48
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 14,626 ms
コンパイル使用メモリ 400,796 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-12-20 20:02:47
合計ジャッジ時間 15,233 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 WA * 9 RE * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
	let mut s = String::new();
	std::io::stdin().read_line(&mut s).ok();
	let n: u32 = s.trim().parse().unwrap();
	let mut a = 0;
	for i in 1..=n {
		match n % i {
			_ if i > n / i => break,
			0 if i == n / i => a += 1,
			0 => a += 2,
			_ => (),
		}
	}
	print!("{}", a)
}
0