結果

問題 No.933 おまわりさんこいつです
ユーザー kzyKTkzyKT
提出日時 2019-11-29 21:56:56
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 161 bytes
コンパイル時間 51 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 76,372 KB
最終ジャッジ日時 2024-04-30 23:29:00
合計ジャッジ時間 6,274 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
17,664 KB
testcase_01 AC 90 ms
12,160 KB
testcase_02 AC 89 ms
12,288 KB
testcase_03 AC 88 ms
12,160 KB
testcase_04 AC 91 ms
12,160 KB
testcase_05 AC 88 ms
12,160 KB
testcase_06 AC 88 ms
12,032 KB
testcase_07 AC 88 ms
12,160 KB
testcase_08 AC 89 ms
12,160 KB
testcase_09 AC 89 ms
12,032 KB
testcase_10 AC 89 ms
12,288 KB
testcase_11 AC 95 ms
12,288 KB
testcase_12 AC 108 ms
14,080 KB
testcase_13 AC 412 ms
29,440 KB
testcase_14 AC 744 ms
35,840 KB
testcase_15 TLE -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

x = 1
n = gets.to_i
a = gets.chomp.split(" ")
for i in 0..n-1
  x *= a[i].to_i
end

while x>=10
  y = 0
  while x>0
    y+=x%10
    x/=10
  end
  x=y
end
print x
0