結果

問題 No.1157 Many Quotients easy
ユーザー gemmarogemmaro
提出日時 2020-10-07 10:38:08
言語 Ruby
(3.3.0)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 105 bytes
コンパイル時間 362 ms
コンパイル使用メモリ 11,296 KB
実行使用メモリ 17,076 KB
最終ジャッジ日時 2023-09-27 09:10:31
合計ジャッジ時間 4,798 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
15,292 KB
testcase_01 AC 78 ms
15,824 KB
testcase_02 AC 73 ms
15,484 KB
testcase_03 AC 79 ms
16,704 KB
testcase_04 AC 82 ms
16,368 KB
testcase_05 AC 72 ms
15,348 KB
testcase_06 AC 76 ms
16,072 KB
testcase_07 AC 71 ms
15,264 KB
testcase_08 AC 74 ms
16,376 KB
testcase_09 AC 75 ms
15,880 KB
testcase_10 AC 72 ms
15,492 KB
testcase_11 AC 71 ms
15,596 KB
testcase_12 AC 76 ms
15,648 KB
testcase_13 AC 82 ms
17,016 KB
testcase_14 AC 82 ms
17,036 KB
testcase_15 AC 74 ms
15,476 KB
testcase_16 AC 78 ms
16,792 KB
testcase_17 AC 82 ms
17,076 KB
testcase_18 AC 78 ms
17,024 KB
testcase_19 AC 76 ms
16,092 KB
testcase_20 AC 76 ms
15,932 KB
testcase_21 AC 70 ms
15,084 KB
testcase_22 AC 73 ms
15,148 KB
testcase_23 AC 74 ms
15,124 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

# frozen_string_literal: true

def solve
  (1..N).map { N / _1 }.uniq.size
end

N = gets.to_i
puts solve
0