結果

問題 No.16 累乗の加算
ユーザー letrangerjpletrangerjp
提出日時 2017-06-01 23:20:18
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,556 ms / 5,000 ms
コード長 61 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 11,528 KB
実行使用メモリ 114,956 KB
最終ジャッジ日時 2023-09-08 12:09:27
合計ジャッジ時間 9,349 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
15,272 KB
testcase_01 AC 85 ms
15,284 KB
testcase_02 AC 1,556 ms
114,956 KB
testcase_03 AC 440 ms
60,888 KB
testcase_04 AC 432 ms
59,420 KB
testcase_05 AC 539 ms
78,216 KB
testcase_06 AC 983 ms
87,388 KB
testcase_07 AC 534 ms
72,952 KB
testcase_08 AC 1,061 ms
100,532 KB
testcase_09 AC 711 ms
87,500 KB
testcase_10 AC 531 ms
76,820 KB
testcase_11 AC 117 ms
21,816 KB
testcase_12 AC 974 ms
88,840 KB
testcase_13 AC 83 ms
15,352 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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