結果

問題 No.1505 Zero-Product Ranges
ユーザー gemmarogemmaro
提出日時 2021-05-26 23:34:03
言語 Ruby
(3.3.0)
結果
AC  
実行時間 249 ms / 2,000 ms
コード長 55 bytes
コンパイル時間 442 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 41,472 KB
最終ジャッジ日時 2024-04-23 16:51:02
合計ジャッジ時間 10,472 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
12,160 KB
testcase_01 AC 87 ms
12,288 KB
testcase_02 AC 90 ms
12,288 KB
testcase_03 AC 244 ms
41,216 KB
testcase_04 AC 242 ms
41,344 KB
testcase_05 AC 143 ms
24,448 KB
testcase_06 AC 143 ms
23,424 KB
testcase_07 AC 128 ms
21,120 KB
testcase_08 AC 138 ms
22,016 KB
testcase_09 AC 136 ms
21,504 KB
testcase_10 AC 139 ms
21,760 KB
testcase_11 AC 145 ms
24,064 KB
testcase_12 AC 128 ms
20,224 KB
testcase_13 AC 170 ms
29,312 KB
testcase_14 AC 165 ms
28,544 KB
testcase_15 AC 238 ms
40,832 KB
testcase_16 AC 249 ms
41,472 KB
testcase_17 AC 248 ms
41,344 KB
testcase_18 AC 248 ms
41,344 KB
testcase_19 AC 86 ms
12,288 KB
testcase_20 AC 88 ms
12,288 KB
testcase_21 AC 89 ms
12,160 KB
testcase_22 AC 245 ms
41,344 KB
testcase_23 AC 244 ms
41,088 KB
testcase_24 AC 245 ms
40,832 KB
testcase_25 AC 233 ms
40,576 KB
testcase_26 AC 237 ms
40,704 KB
testcase_27 AC 238 ms
40,576 KB
testcase_28 AC 237 ms
40,576 KB
testcase_29 AC 245 ms
41,216 KB
testcase_30 AC 243 ms
41,216 KB
testcase_31 AC 239 ms
40,832 KB
testcase_32 AC 162 ms
28,160 KB
testcase_33 AC 155 ms
27,136 KB
testcase_34 AC 170 ms
28,800 KB
testcase_35 AC 144 ms
24,192 KB
testcase_36 AC 147 ms
25,216 KB
testcase_37 AC 158 ms
27,904 KB
testcase_38 AC 152 ms
26,880 KB
testcase_39 AC 156 ms
27,264 KB
testcase_40 AC 158 ms
28,032 KB
testcase_41 AC 171 ms
29,184 KB
testcase_42 AC 97 ms
13,568 KB
testcase_43 AC 103 ms
14,720 KB
testcase_44 AC 101 ms
14,208 KB
testcase_45 AC 100 ms
14,592 KB
testcase_46 AC 96 ms
13,312 KB
testcase_47 AC 101 ms
14,976 KB
testcase_48 AC 99 ms
13,568 KB
testcase_49 AC 91 ms
12,672 KB
testcase_50 AC 97 ms
13,696 KB
testcase_51 AC 100 ms
14,464 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets;i=0;p gets.split.zip(0..).map{_1==?0?i=_2+1:i}.sum
0