結果

問題 No.278 連続する整数の和(2)
ユーザー mmmpppmmmppp
提出日時 2017-03-07 15:13:08
言語 Ruby
(3.3.0)
結果
AC  
実行時間 201 ms / 2,000 ms
コード長 87 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 11,256 KB
実行使用メモリ 15,580 KB
最終ジャッジ日時 2023-08-24 22:48:58
合計ジャッジ時間 2,937 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
15,076 KB
testcase_01 AC 89 ms
15,384 KB
testcase_02 AC 201 ms
15,364 KB
testcase_03 AC 88 ms
15,120 KB
testcase_04 AC 89 ms
15,336 KB
testcase_05 AC 90 ms
15,100 KB
testcase_06 AC 88 ms
15,092 KB
testcase_07 AC 89 ms
15,188 KB
testcase_08 AC 89 ms
15,124 KB
testcase_09 AC 88 ms
15,088 KB
testcase_10 AC 90 ms
15,232 KB
testcase_11 AC 103 ms
15,544 KB
testcase_12 AC 90 ms
15,212 KB
testcase_13 AC 166 ms
15,452 KB
testcase_14 AC 97 ms
15,580 KB
testcase_15 AC 131 ms
15,320 KB
testcase_16 AC 100 ms
15,380 KB
testcase_17 AC 96 ms
15,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require'prime'
n=gets.to_i
s=1;(n>>1-n%2).prime_division.map{|a,b|s*=~-a**-~b/a-=1};p s
0