結果

問題 No.3034 7 problems
ユーザー cielciel
提出日時 2019-09-11 00:01:16
言語 Ruby
(3.3.0)
結果
AC  
実行時間 636 ms / 2,000 ms
コード長 216 bytes
コンパイル時間 520 ms
コンパイル使用メモリ 11,584 KB
実行使用メモリ 31,580 KB
最終ジャッジ日時 2023-09-15 13:23:50
合計ジャッジ時間 32,911 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 397 ms
30,780 KB
testcase_01 AC 393 ms
30,764 KB
testcase_02 AC 601 ms
31,316 KB
testcase_03 AC 460 ms
31,356 KB
testcase_04 AC 470 ms
31,300 KB
testcase_05 AC 559 ms
31,512 KB
testcase_06 AC 545 ms
31,328 KB
testcase_07 AC 543 ms
31,336 KB
testcase_08 AC 520 ms
31,304 KB
testcase_09 AC 568 ms
31,404 KB
testcase_10 AC 472 ms
31,464 KB
testcase_11 AC 532 ms
31,332 KB
testcase_12 AC 493 ms
31,336 KB
testcase_13 AC 515 ms
31,300 KB
testcase_14 AC 505 ms
31,336 KB
testcase_15 AC 503 ms
31,456 KB
testcase_16 AC 499 ms
31,348 KB
testcase_17 AC 513 ms
31,256 KB
testcase_18 AC 636 ms
31,532 KB
testcase_19 AC 524 ms
31,500 KB
testcase_20 AC 541 ms
31,408 KB
testcase_21 AC 447 ms
31,340 KB
testcase_22 AC 592 ms
31,464 KB
testcase_23 AC 514 ms
31,288 KB
testcase_24 AC 602 ms
31,316 KB
testcase_25 AC 583 ms
31,460 KB
testcase_26 AC 452 ms
31,288 KB
testcase_27 AC 633 ms
31,300 KB
testcase_28 AC 569 ms
31,380 KB
testcase_29 AC 552 ms
31,344 KB
testcase_30 AC 442 ms
31,288 KB
testcase_31 AC 567 ms
31,516 KB
testcase_32 AC 495 ms
31,348 KB
testcase_33 AC 554 ms
31,304 KB
testcase_34 AC 459 ms
31,288 KB
testcase_35 AC 560 ms
31,580 KB
testcase_36 AC 519 ms
31,580 KB
testcase_37 AC 434 ms
31,292 KB
testcase_38 AC 549 ms
31,420 KB
testcase_39 AC 559 ms
31,352 KB
testcase_40 AC 600 ms
31,472 KB
testcase_41 AC 487 ms
31,300 KB
testcase_42 AC 568 ms
31,428 KB
testcase_43 AC 628 ms
31,184 KB
testcase_44 AC 472 ms
31,468 KB
testcase_45 AC 505 ms
31,316 KB
testcase_46 AC 484 ms
31,384 KB
testcase_47 AC 475 ms
31,464 KB
testcase_48 AC 480 ms
31,444 KB
testcase_49 AC 623 ms
31,184 KB
testcase_50 AC 477 ms
31,460 KB
testcase_51 AC 478 ms
31,316 KB
testcase_52 AC 395 ms
30,748 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

M=10**9+7;F=[1,f=1];C=[0,0];f=1
2.upto(1e6){|i|F<<F[i-1]*i%M;C<<(C[i-1]*i+F[i-1])%M}
T=gets.to_i
(1..T).each{|i|
    i>1&&puts
	n=gets.to_i
	p n*n
	p n*(n*n+~-n)
	p T
	p 4*n*n+17
	p n.pow(n**3,M)
	p n
	p (n*C[n])%M
}
0