結果

問題 No.933 おまわりさんこいつです
ユーザー TSF_initialDTSF_initialD
提出日時 2020-03-30 11:51:03
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 146 bytes
コンパイル時間 48 ms
コンパイル使用メモリ 11,232 KB
実行使用メモリ 17,212 KB
最終ジャッジ日時 2023-09-02 11:06:05
合計ジャッジ時間 4,013 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 81 ms
15,152 KB
testcase_02 AC 80 ms
15,292 KB
testcase_03 WA -
testcase_04 AC 79 ms
15,128 KB
testcase_05 AC 78 ms
15,152 KB
testcase_06 AC 78 ms
15,108 KB
testcase_07 AC 78 ms
15,076 KB
testcase_08 AC 77 ms
15,092 KB
testcase_09 AC 77 ms
15,308 KB
testcase_10 AC 77 ms
15,048 KB
testcase_11 AC 82 ms
15,152 KB
testcase_12 AC 81 ms
15,260 KB
testcase_13 AC 83 ms
15,316 KB
testcase_14 AC 84 ms
15,240 KB
testcase_15 AC 89 ms
15,092 KB
testcase_16 AC 116 ms
15,572 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 189 ms
15,416 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 189 ms
17,164 KB
testcase_24 AC 188 ms
17,212 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n = $stdin.gets.to_i
ans = 1
inp = 0
n.times do
    inp = $stdin.gets.to_i
    ans = ans * inp
end
ans % 9 == 0 ? ans = 9 : ans = ans % 9
puts ans
0