結果

問題 No.1343 Dividing Digit
ユーザー yuruhiyayuruhiya
提出日時 2021-01-16 15:11:57
言語 Ruby
(3.3.0)
結果
AC  
実行時間 191 ms / 2,000 ms
コード長 82 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 7,680 KB
実行使用メモリ 28,028 KB
最終ジャッジ日時 2024-05-05 17:51:46
合計ジャッジ時間 4,890 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
12,288 KB
testcase_01 AC 90 ms
12,288 KB
testcase_02 AC 89 ms
12,160 KB
testcase_03 AC 187 ms
27,124 KB
testcase_04 AC 102 ms
13,952 KB
testcase_05 AC 116 ms
16,896 KB
testcase_06 AC 109 ms
14,720 KB
testcase_07 AC 129 ms
18,688 KB
testcase_08 AC 176 ms
25,088 KB
testcase_09 AC 178 ms
25,600 KB
testcase_10 AC 106 ms
14,464 KB
testcase_11 AC 123 ms
18,176 KB
testcase_12 AC 162 ms
24,448 KB
testcase_13 AC 163 ms
23,680 KB
testcase_14 AC 105 ms
14,080 KB
testcase_15 AC 124 ms
17,408 KB
testcase_16 AC 106 ms
14,460 KB
testcase_17 AC 178 ms
25,728 KB
testcase_18 AC 184 ms
26,956 KB
testcase_19 AC 159 ms
23,680 KB
testcase_20 AC 138 ms
20,224 KB
testcase_21 AC 175 ms
25,472 KB
testcase_22 AC 175 ms
25,600 KB
testcase_23 AC 191 ms
28,028 KB
testcase_24 AC 180 ms
27,128 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

eval"N,K,*A="+`dd`.split*?,
m,x,y=A.sum,1,0
A.reverse.map{y+=_1*x%m;x=x*K%m}
p y%m
0