結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 98 ms
15,360 KB
testcase_01 AC 91 ms
15,188 KB
testcase_02 AC 202 ms
15,532 KB
testcase_03 AC 92 ms
15,080 KB
testcase_04 AC 91 ms
15,392 KB
testcase_05 AC 93 ms
15,080 KB
testcase_06 AC 93 ms
15,116 KB
testcase_07 AC 93 ms
15,276 KB
testcase_08 AC 94 ms
15,292 KB
testcase_09 AC 92 ms
15,188 KB
testcase_10 AC 95 ms
15,172 KB
testcase_11 AC 107 ms
15,548 KB
testcase_12 AC 93 ms
15,284 KB
testcase_13 AC 167 ms
15,348 KB
testcase_14 AC 99 ms
15,472 KB
testcase_15 AC 134 ms
15,348 KB
testcase_16 AC 101 ms
15,504 KB
testcase_17 AC 97 ms
15,392 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!ruby -prprime
n=$_.to_i;$_=1;(n>>1-n%2).prime_division.map{|a,b|$_*=~-a**-~b/a-=1}
0