結果

問題 No.933 おまわりさんこいつです
ユーザー 小野寺健小野寺健
提出日時 2021-11-09 12:44:48
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 130 bytes
コンパイル時間 121 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 108,488 KB
最終ジャッジ日時 2024-04-29 08:24:04
合計ジャッジ時間 6,210 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
12,160 KB
testcase_01 AC 77 ms
12,032 KB
testcase_02 AC 75 ms
12,032 KB
testcase_03 AC 77 ms
12,288 KB
testcase_04 AC 76 ms
12,160 KB
testcase_05 AC 76 ms
12,288 KB
testcase_06 AC 75 ms
12,416 KB
testcase_07 AC 73 ms
12,416 KB
testcase_08 AC 73 ms
12,288 KB
testcase_09 AC 73 ms
12,288 KB
testcase_10 AC 73 ms
12,160 KB
testcase_11 AC 75 ms
12,160 KB
testcase_12 AC 77 ms
12,160 KB
testcase_13 AC 80 ms
13,184 KB
testcase_14 AC 80 ms
14,720 KB
testcase_15 AC 92 ms
20,864 KB
testcase_16 AC 194 ms
65,988 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 660 ms
108,488 KB
testcase_21 AC 73 ms
12,032 KB
testcase_22 AC 73 ms
12,160 KB
testcase_23 AC 638 ms
48,616 KB
testcase_24 AC 1,010 ms
49,084 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N = gets.to_i
P = gets.split(" ").map{|s| s.to_i}

k = 1
P.each {|x|
	k *= x % 9 == 0 ? 9 : x % 9
}

puts k % 9 == 0 ? 9 : k % 9
	
0