結果

問題 No.1343 Dividing Digit
ユーザー kotatsugamekotatsugame
提出日時 2021-01-16 16:04:16
言語 Ruby
(3.3.0)
結果
AC  
実行時間 852 ms / 2,000 ms
コード長 63 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 27,860 KB
最終ジャッジ日時 2024-05-05 18:56:25
合計ジャッジ時間 13,402 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
12,288 KB
testcase_01 AC 88 ms
12,160 KB
testcase_02 AC 91 ms
12,160 KB
testcase_03 AC 824 ms
26,964 KB
testcase_04 AC 161 ms
13,440 KB
testcase_05 AC 286 ms
16,640 KB
testcase_06 AC 218 ms
14,924 KB
testcase_07 AC 361 ms
18,560 KB
testcase_08 AC 666 ms
25,088 KB
testcase_09 AC 723 ms
25,472 KB
testcase_10 AC 197 ms
14,836 KB
testcase_11 AC 340 ms
17,920 KB
testcase_12 AC 612 ms
24,448 KB
testcase_13 AC 581 ms
23,680 KB
testcase_14 AC 182 ms
13,940 KB
testcase_15 AC 321 ms
17,664 KB
testcase_16 AC 196 ms
14,888 KB
testcase_17 AC 716 ms
25,600 KB
testcase_18 AC 785 ms
26,844 KB
testcase_19 AC 570 ms
23,680 KB
testcase_20 AC 422 ms
20,096 KB
testcase_21 AC 709 ms
25,344 KB
testcase_22 AC 731 ms
25,472 KB
testcase_23 AC 852 ms
27,860 KB
testcase_24 AC 806 ms
27,100 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval'N,K,*A='+`dd`.split*?,
M=A.sum
p A.sum{_1*K.pow(N-=1,M)}%M
0