結果

問題 No.16 累乗の加算
ユーザー mmmpppmmmppp
提出日時 2017-03-01 19:40:37
言語 Ruby
(3.2.2)
結果
AC  
実行時間 1,516 ms / 5,000 ms
コード長 63 bytes
コンパイル時間 57 ms
コンパイル使用メモリ 11,232 KB
実行使用メモリ 115,096 KB
最終ジャッジ日時 2023-09-08 12:07:43
合計ジャッジ時間 8,913 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,104 KB
testcase_01 AC 82 ms
15,232 KB
testcase_02 AC 1,516 ms
115,096 KB
testcase_03 AC 437 ms
60,940 KB
testcase_04 AC 423 ms
59,840 KB
testcase_05 AC 524 ms
78,256 KB
testcase_06 AC 968 ms
87,396 KB
testcase_07 AC 521 ms
72,912 KB
testcase_08 AC 1,046 ms
99,668 KB
testcase_09 AC 697 ms
88,148 KB
testcase_10 AC 516 ms
76,888 KB
testcase_11 AC 118 ms
21,828 KB
testcase_12 AC 963 ms
88,740 KB
testcase_13 AC 82 ms
15,180 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

d=1000003;x=gets;$/=' ';p $<.map{|e|x.to_i**(e.to_i%~-d)}.sum%d
0