結果

問題 No.16 累乗の加算
ユーザー %20%20
提出日時 2017-06-01 23:38:29
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,561 ms / 5,000 ms
コード長 58 bytes
コンパイル時間 170 ms
コンパイル使用メモリ 11,440 KB
実行使用メモリ 115,136 KB
最終ジャッジ日時 2023-09-08 12:09:57
合計ジャッジ時間 9,108 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,280 KB
testcase_01 AC 83 ms
15,204 KB
testcase_02 AC 1,561 ms
115,136 KB
testcase_03 AC 437 ms
60,940 KB
testcase_04 AC 420 ms
59,392 KB
testcase_05 AC 529 ms
78,140 KB
testcase_06 AC 963 ms
87,364 KB
testcase_07 AC 522 ms
72,840 KB
testcase_08 AC 1,055 ms
100,564 KB
testcase_09 AC 703 ms
87,164 KB
testcase_10 AC 518 ms
76,832 KB
testcase_11 AC 117 ms
22,020 KB
testcase_12 AC 956 ms
88,672 KB
testcase_13 AC 83 ms
15,080 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
$/=" "
p$<.map{|a|$_.to_i.**a.to_i%M=1000002}.sum%-~M
0