結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
15,056 KB
testcase_01 AC 84 ms
15,180 KB
testcase_02 AC 1,525 ms
115,060 KB
testcase_03 AC 436 ms
60,908 KB
testcase_04 AC 423 ms
59,600 KB
testcase_05 AC 527 ms
78,164 KB
testcase_06 AC 970 ms
87,660 KB
testcase_07 AC 525 ms
72,784 KB
testcase_08 AC 1,051 ms
100,504 KB
testcase_09 AC 707 ms
87,572 KB
testcase_10 AC 525 ms
76,824 KB
testcase_11 AC 121 ms
21,900 KB
testcase_12 AC 967 ms
88,780 KB
testcase_13 AC 83 ms
15,052 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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