結果

問題 No.16 累乗の加算
ユーザー mmmpppmmmppp
提出日時 2017-02-28 01:28:55
言語 Ruby
(3.3.0)
結果
AC  
実行時間 1,532 ms / 5,000 ms
コード長 69 bytes
コンパイル時間 126 ms
コンパイル使用メモリ 11,428 KB
実行使用メモリ 119,008 KB
最終ジャッジ日時 2023-09-08 12:06:24
合計ジャッジ時間 8,875 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,204 KB
testcase_01 AC 79 ms
15,152 KB
testcase_02 AC 1,532 ms
119,008 KB
testcase_03 AC 431 ms
57,212 KB
testcase_04 AC 451 ms
56,436 KB
testcase_05 AC 526 ms
77,336 KB
testcase_06 AC 968 ms
89,288 KB
testcase_07 AC 523 ms
72,052 KB
testcase_08 AC 1,045 ms
92,428 KB
testcase_09 AC 699 ms
87,628 KB
testcase_10 AC 524 ms
78,076 KB
testcase_11 AC 117 ms
21,140 KB
testcase_12 AC 952 ms
86,764 KB
testcase_13 AC 82 ms
15,120 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s,d=0,1000003;x=gets;gets.split.map{|e|s+=x.to_i**(e.to_i%~-d)};p s%d
0