結果

問題 No.933 おまわりさんこいつです
ユーザー wipexwipex
提出日時 2019-12-17 11:06:40
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 127 bytes
コンパイル時間 638 ms
コンパイル使用メモリ 11,528 KB
実行使用メモリ 130,792 KB
最終ジャッジ日時 2023-09-15 19:25:37
合計ジャッジ時間 8,304 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
19,468 KB
testcase_01 AC 79 ms
15,040 KB
testcase_02 AC 81 ms
15,056 KB
testcase_03 AC 78 ms
15,112 KB
testcase_04 AC 79 ms
15,176 KB
testcase_05 AC 79 ms
15,048 KB
testcase_06 AC 79 ms
15,260 KB
testcase_07 AC 79 ms
15,340 KB
testcase_08 AC 79 ms
15,088 KB
testcase_09 AC 78 ms
15,124 KB
testcase_10 AC 77 ms
15,256 KB
testcase_11 AC 77 ms
15,048 KB
testcase_12 AC 79 ms
15,524 KB
testcase_13 AC 92 ms
24,320 KB
testcase_14 AC 103 ms
32,500 KB
testcase_15 AC 168 ms
78,224 KB
testcase_16 AC 694 ms
112,040 KB
testcase_17 AC 131 ms
38,064 KB
testcase_18 AC 77 ms
15,232 KB
testcase_19 AC 313 ms
119,128 KB
testcase_20 AC 642 ms
130,792 KB
testcase_21 AC 77 ms
15,256 KB
testcase_22 AC 77 ms
15,036 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==0
  p 0
elsif s%9 ==0
  p 9
else
  p s%9
end
0