結果

問題 No.1096 Range Sums
ユーザー kotatsugamekotatsugame
提出日時 2020-06-26 21:29:39
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,362 ms / 2,000 ms
コード長 54 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 11,264 KB
実行使用メモリ 49,500 KB
最終ジャッジ日時 2023-09-18 04:55:43
合計ジャッジ時間 9,134 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
15,084 KB
testcase_01 AC 88 ms
15,076 KB
testcase_02 AC 83 ms
15,084 KB
testcase_03 AC 86 ms
15,248 KB
testcase_04 AC 84 ms
15,112 KB
testcase_05 AC 84 ms
15,016 KB
testcase_06 AC 83 ms
15,240 KB
testcase_07 AC 82 ms
15,084 KB
testcase_08 AC 84 ms
15,236 KB
testcase_09 AC 83 ms
15,292 KB
testcase_10 AC 1,315 ms
49,480 KB
testcase_11 AC 1,347 ms
49,496 KB
testcase_12 AC 1,314 ms
49,356 KB
testcase_13 AC 1,362 ms
49,476 KB
testcase_14 AC 1,341 ms
49,500 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval'N,*A='+`dd`.split*?,
i=0
p A.sum{_1*~(N-=1)*i-=1}
0