結果
問題 | No.2773 Wake up Record 1 |
ユーザー | gemmaro |
提出日時 | 2024-06-16 16:02:33 |
言語 | Ruby (3.3.0) |
結果 |
AC
|
実行時間 | 157 ms / 2,000 ms |
コード長 | 195 bytes |
コンパイル時間 | 194 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 20,608 KB |
最終ジャッジ日時 | 2024-06-16 16:02:39 |
合計ジャッジ時間 | 4,813 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 77 ms
12,160 KB |
testcase_01 | AC | 78 ms
12,160 KB |
testcase_02 | AC | 79 ms
12,160 KB |
testcase_03 | AC | 78 ms
12,160 KB |
testcase_04 | AC | 107 ms
12,288 KB |
testcase_05 | AC | 154 ms
19,840 KB |
testcase_06 | AC | 108 ms
14,592 KB |
testcase_07 | AC | 151 ms
19,968 KB |
testcase_08 | AC | 108 ms
14,592 KB |
testcase_09 | AC | 120 ms
16,256 KB |
testcase_10 | AC | 112 ms
14,592 KB |
testcase_11 | AC | 143 ms
19,456 KB |
testcase_12 | AC | 123 ms
16,896 KB |
testcase_13 | AC | 108 ms
13,184 KB |
testcase_14 | AC | 115 ms
14,720 KB |
testcase_15 | AC | 88 ms
12,416 KB |
testcase_16 | AC | 157 ms
19,840 KB |
testcase_17 | AC | 133 ms
17,024 KB |
testcase_18 | AC | 99 ms
13,440 KB |
testcase_19 | AC | 150 ms
20,608 KB |
testcase_20 | AC | 89 ms
13,312 KB |
testcase_21 | AC | 145 ms
19,072 KB |
testcase_22 | AC | 152 ms
19,200 KB |
testcase_23 | AC | 151 ms
19,584 KB |
testcase_24 | AC | 118 ms
16,896 KB |
コンパイルメッセージ
Syntax OK
ソースコード
N = gets.to_i S = gets.chars times = [] S.each_cons(2).with_index do |(left, right), index| if left == "x" && right == "o" times << index + 2 end end puts times.size puts times.join(" ")