結果

問題 No.933 おまわりさんこいつです
ユーザー wipexwipex
提出日時 2019-12-17 10:58:57
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 111 bytes
コンパイル時間 489 ms
コンパイル使用メモリ 11,392 KB
実行使用メモリ 130,724 KB
最終ジャッジ日時 2023-09-15 19:23:31
合計ジャッジ時間 8,310 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
19,492 KB
testcase_01 AC 82 ms
15,328 KB
testcase_02 AC 80 ms
15,064 KB
testcase_03 AC 82 ms
15,260 KB
testcase_04 AC 80 ms
15,020 KB
testcase_05 AC 81 ms
15,096 KB
testcase_06 AC 83 ms
15,292 KB
testcase_07 AC 82 ms
15,300 KB
testcase_08 AC 81 ms
15,240 KB
testcase_09 AC 82 ms
15,264 KB
testcase_10 AC 82 ms
15,080 KB
testcase_11 AC 83 ms
15,144 KB
testcase_12 AC 84 ms
15,588 KB
testcase_13 AC 93 ms
24,064 KB
testcase_14 AC 106 ms
32,424 KB
testcase_15 AC 173 ms
78,160 KB
testcase_16 AC 707 ms
112,184 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 648 ms
130,724 KB
testcase_21 AC 77 ms
15,288 KB
testcase_22 AC 82 ms
15,040 KB
testcase_23 TLE -
testcase_24 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.chomp.to_i
p = gets.chomp.split(" ").map(&:to_i)
s = p.inject(:*)

if s%9 ==0
  p 9
else
  p s%9
end

0