結果

問題 No.1505 Zero-Product Ranges
ユーザー gemmarogemmaro
提出日時 2021-05-26 23:34:03
言語 Ruby
(3.3.0)
結果
AC  
実行時間 239 ms / 2,000 ms
コード長 55 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 11,560 KB
実行使用メモリ 42,068 KB
最終ジャッジ日時 2023-08-05 20:18:32
合計ジャッジ時間 10,451 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,276 KB
testcase_01 AC 82 ms
15,164 KB
testcase_02 AC 82 ms
15,212 KB
testcase_03 AC 239 ms
41,944 KB
testcase_04 AC 236 ms
41,996 KB
testcase_05 AC 140 ms
27,752 KB
testcase_06 AC 137 ms
26,804 KB
testcase_07 AC 120 ms
23,152 KB
testcase_08 AC 133 ms
24,544 KB
testcase_09 AC 133 ms
23,480 KB
testcase_10 AC 134 ms
23,680 KB
testcase_11 AC 140 ms
27,480 KB
testcase_12 AC 119 ms
23,204 KB
testcase_13 AC 162 ms
31,776 KB
testcase_14 AC 157 ms
29,760 KB
testcase_15 AC 229 ms
41,064 KB
testcase_16 AC 228 ms
42,068 KB
testcase_17 AC 232 ms
41,988 KB
testcase_18 AC 229 ms
41,952 KB
testcase_19 AC 83 ms
15,316 KB
testcase_20 AC 82 ms
15,136 KB
testcase_21 AC 81 ms
15,028 KB
testcase_22 AC 224 ms
41,264 KB
testcase_23 AC 233 ms
41,380 KB
testcase_24 AC 226 ms
40,812 KB
testcase_25 AC 208 ms
40,484 KB
testcase_26 AC 231 ms
40,912 KB
testcase_27 AC 200 ms
40,760 KB
testcase_28 AC 228 ms
40,852 KB
testcase_29 AC 227 ms
41,156 KB
testcase_30 AC 234 ms
41,836 KB
testcase_31 AC 236 ms
41,188 KB
testcase_32 AC 157 ms
29,832 KB
testcase_33 AC 155 ms
29,528 KB
testcase_34 AC 163 ms
30,176 KB
testcase_35 AC 143 ms
27,616 KB
testcase_36 AC 145 ms
28,300 KB
testcase_37 AC 156 ms
29,692 KB
testcase_38 AC 152 ms
29,532 KB
testcase_39 AC 154 ms
29,292 KB
testcase_40 AC 155 ms
29,688 KB
testcase_41 AC 160 ms
31,112 KB
testcase_42 AC 85 ms
16,524 KB
testcase_43 AC 99 ms
17,600 KB
testcase_44 AC 95 ms
17,156 KB
testcase_45 AC 99 ms
17,356 KB
testcase_46 AC 89 ms
16,352 KB
testcase_47 AC 98 ms
17,628 KB
testcase_48 AC 94 ms
16,784 KB
testcase_49 AC 82 ms
15,440 KB
testcase_50 AC 94 ms
16,964 KB
testcase_51 AC 95 ms
17,340 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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