結果

問題 No.727 仲介人moko
ユーザー cielciel
提出日時 2018-08-26 20:54:18
言語 Ruby
(3.2.2)
結果
AC  
実行時間 784 ms / 1,000 ms
コード長 53 bytes
コンパイル時間 73 ms
コンパイル使用メモリ 11,544 KB
実行使用メモリ 15,472 KB
最終ジャッジ日時 2023-09-13 19:23:11
合計ジャッジ時間 9,292 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,104 KB
testcase_01 AC 80 ms
15,148 KB
testcase_02 AC 80 ms
15,060 KB
testcase_03 AC 98 ms
15,276 KB
testcase_04 AC 82 ms
15,100 KB
testcase_05 AC 81 ms
15,256 KB
testcase_06 AC 80 ms
15,280 KB
testcase_07 AC 80 ms
15,116 KB
testcase_08 AC 81 ms
15,060 KB
testcase_09 AC 80 ms
15,064 KB
testcase_10 AC 81 ms
15,292 KB
testcase_11 AC 82 ms
15,304 KB
testcase_12 AC 81 ms
15,052 KB
testcase_13 AC 81 ms
15,328 KB
testcase_14 AC 379 ms
15,264 KB
testcase_15 AC 598 ms
15,368 KB
testcase_16 AC 324 ms
15,472 KB
testcase_17 AC 394 ms
15,256 KB
testcase_18 AC 283 ms
15,364 KB
testcase_19 AC 666 ms
15,272 KB
testcase_20 AC 390 ms
15,160 KB
testcase_21 AC 235 ms
15,360 KB
testcase_22 AC 212 ms
15,396 KB
testcase_23 AC 746 ms
15,208 KB
testcase_24 AC 784 ms
15,260 KB
testcase_25 AC 522 ms
15,208 KB
testcase_26 AC 629 ms
15,380 KB
testcase_27 AC 526 ms
15,400 KB
testcase_28 AC 94 ms
15,268 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

p (1..gets.to_i).reduce{|s,i|s*i*i*(2*i-1)%(10**9+7)}
0