結果

問題 No.933 おまわりさんこいつです
ユーザー TANIGUCHI KousukeTANIGUCHI Kousuke
提出日時 2019-12-06 12:22:01
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 140 bytes
コンパイル時間 227 ms
コンパイル使用メモリ 11,164 KB
実行使用メモリ 152,388 KB
最終ジャッジ日時 2023-08-24 19:50:00
合計ジャッジ時間 8,522 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 83 ms
15,212 KB
testcase_01 AC 78 ms
15,312 KB
testcase_02 AC 78 ms
15,128 KB
testcase_03 AC 79 ms
15,220 KB
testcase_04 AC 79 ms
15,056 KB
testcase_05 AC 79 ms
15,032 KB
testcase_06 AC 79 ms
15,180 KB
testcase_07 AC 82 ms
15,076 KB
testcase_08 AC 80 ms
15,204 KB
testcase_09 AC 80 ms
15,260 KB
testcase_10 AC 79 ms
15,052 KB
testcase_11 AC 79 ms
15,296 KB
testcase_12 AC 80 ms
15,132 KB
testcase_13 AC 84 ms
16,076 KB
testcase_14 AC 86 ms
17,460 KB
testcase_15 AC 97 ms
23,264 KB
testcase_16 AC 211 ms
63,652 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 655 ms
134,256 KB
testcase_21 AC 79 ms
15,140 KB
testcase_22 AC 78 ms
15,328 KB
testcase_23 AC 844 ms
130,228 KB
testcase_24 AC 1,264 ms
152,388 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

def num_root(d); m = d % 9; m == 0 ? 9 : m; end
N = gets.to_i
P = gets.split.map(&:to_i)
puts num_root(P.inject(1){|s,v| s * num_root(v) })
0