結果

問題 No.537 ユーザーID
ユーザー 👑 horiesinitihoriesiniti
提出日時 2017-09-15 12:45:49
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 100 bytes
コンパイル時間 56 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-04-25 11:29:29
合計ジャッジ時間 4,675 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
12,416 KB
testcase_01 AC 82 ms
12,032 KB
testcase_02 AC 84 ms
12,416 KB
testcase_03 AC 81 ms
12,160 KB
testcase_04 AC 81 ms
12,160 KB
testcase_05 AC 80 ms
12,160 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 79 ms
12,416 KB
testcase_10 AC 80 ms
12,288 KB
testcase_11 AC 82 ms
12,288 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 116 ms
12,160 KB
testcase_19 AC 126 ms
12,288 KB
testcase_20 AC 123 ms
12,288 KB
testcase_21 AC 115 ms
12,160 KB
testcase_22 AC 126 ms
12,288 KB
testcase_23 AC 108 ms
12,032 KB
testcase_24 AC 92 ms
12,032 KB
testcase_25 AC 133 ms
12,160 KB
testcase_26 AC 134 ms
12,160 KB
testcase_27 AC 119 ms
12,288 KB
testcase_28 AC 101 ms
12,160 KB
testcase_29 AC 127 ms
12,032 KB
testcase_30 AC 124 ms
12,032 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i
i=1
ans=0
while i*i<n
	if n%i==0 then
		ans+=2
	end
	i+=1
end
ans+=1 if i*i==n
puts ans
0