結果

問題 No.1343 Dividing Digit
ユーザー yuruhiyayuruhiya
提出日時 2021-01-16 15:15:03
言語 Ruby
(3.3.0)
結果
AC  
実行時間 164 ms / 2,000 ms
コード長 73 bytes
コンパイル時間 30 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 27,716 KB
最終ジャッジ日時 2024-05-05 17:56:04
合計ジャッジ時間 4,036 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
11,904 KB
testcase_01 AC 74 ms
12,032 KB
testcase_02 AC 76 ms
12,160 KB
testcase_03 AC 160 ms
27,076 KB
testcase_04 AC 89 ms
13,312 KB
testcase_05 AC 100 ms
16,640 KB
testcase_06 AC 93 ms
14,848 KB
testcase_07 AC 110 ms
18,432 KB
testcase_08 AC 144 ms
25,088 KB
testcase_09 AC 151 ms
25,472 KB
testcase_10 AC 89 ms
14,336 KB
testcase_11 AC 111 ms
17,920 KB
testcase_12 AC 140 ms
24,448 KB
testcase_13 AC 136 ms
23,552 KB
testcase_14 AC 86 ms
13,952 KB
testcase_15 AC 103 ms
17,408 KB
testcase_16 AC 90 ms
14,080 KB
testcase_17 AC 147 ms
25,600 KB
testcase_18 AC 157 ms
26,828 KB
testcase_19 AC 135 ms
23,552 KB
testcase_20 AC 115 ms
20,096 KB
testcase_21 AC 153 ms
25,216 KB
testcase_22 AC 148 ms
25,344 KB
testcase_23 AC 164 ms
27,716 KB
testcase_24 AC 156 ms
27,124 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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