結果

問題 No.1343 Dividing Digit
ユーザー yuruhiyayuruhiya
提出日時 2021-01-16 16:18:31
言語 Ruby
(3.3.0)
結果
AC  
実行時間 736 ms / 2,000 ms
コード長 66 bytes
コンパイル時間 393 ms
コンパイル使用メモリ 11,220 KB
実行使用メモリ 33,504 KB
最終ジャッジ日時 2023-08-18 13:59:08
合計ジャッジ時間 12,975 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,280 KB
testcase_01 AC 82 ms
15,244 KB
testcase_02 AC 83 ms
15,096 KB
testcase_03 AC 715 ms
32,320 KB
testcase_04 AC 144 ms
16,504 KB
testcase_05 AC 254 ms
19,680 KB
testcase_06 AC 192 ms
17,896 KB
testcase_07 AC 321 ms
21,432 KB
testcase_08 AC 590 ms
28,500 KB
testcase_09 AC 635 ms
30,300 KB
testcase_10 AC 168 ms
17,132 KB
testcase_11 AC 306 ms
21,152 KB
testcase_12 AC 558 ms
27,352 KB
testcase_13 AC 497 ms
26,328 KB
testcase_14 AC 165 ms
16,968 KB
testcase_15 AC 281 ms
20,732 KB
testcase_16 AC 167 ms
17,304 KB
testcase_17 AC 634 ms
29,956 KB
testcase_18 AC 700 ms
32,224 KB
testcase_19 AC 498 ms
26,228 KB
testcase_20 AC 378 ms
23,000 KB
testcase_21 AC 624 ms
29,168 KB
testcase_22 AC 627 ms
29,668 KB
testcase_23 AC 730 ms
33,504 KB
testcase_24 AC 736 ms
32,124 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"N,K,*A="+gets(p).split*?,
m=A.sum
p A.sum{_1*K.pow(N-=1,m)}%m
0