結果

問題 No.2373 wa, wo, n
ユーザー gemmarogemmaro
提出日時 2023-07-13 22:54:26
言語 Ruby
(3.3.0)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 181 bytes
コンパイル時間 65 ms
コンパイル使用メモリ 11,444 KB
実行使用メモリ 15,660 KB
最終ジャッジ日時 2023-10-13 11:44:34
合計ジャッジ時間 6,818 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
15,416 KB
testcase_01 AC 79 ms
15,228 KB
testcase_02 AC 80 ms
15,188 KB
testcase_03 AC 79 ms
15,164 KB
testcase_04 AC 83 ms
15,260 KB
testcase_05 AC 80 ms
15,408 KB
testcase_06 AC 80 ms
15,320 KB
testcase_07 AC 80 ms
15,408 KB
testcase_08 AC 81 ms
15,260 KB
testcase_09 AC 81 ms
15,288 KB
testcase_10 AC 80 ms
15,392 KB
testcase_11 AC 80 ms
15,412 KB
testcase_12 AC 79 ms
15,368 KB
testcase_13 AC 80 ms
15,228 KB
testcase_14 AC 99 ms
15,416 KB
testcase_15 AC 82 ms
15,244 KB
testcase_16 AC 104 ms
15,660 KB
testcase_17 AC 87 ms
15,152 KB
testcase_18 AC 81 ms
15,332 KB
testcase_19 AC 81 ms
15,268 KB
testcase_20 AC 81 ms
15,560 KB
testcase_21 AC 80 ms
15,416 KB
testcase_22 AC 82 ms
15,316 KB
testcase_23 AC 84 ms
15,448 KB
testcase_24 AC 80 ms
15,248 KB
testcase_25 AC 83 ms
15,180 KB
testcase_26 AC 81 ms
15,384 KB
testcase_27 AC 80 ms
15,412 KB
testcase_28 AC 80 ms
15,356 KB
testcase_29 AC 78 ms
15,256 KB
testcase_30 AC 78 ms
15,252 KB
testcase_31 AC 79 ms
15,232 KB
testcase_32 AC 106 ms
15,512 KB
testcase_33 AC 81 ms
15,436 KB
testcase_34 AC 115 ms
15,656 KB
testcase_35 AC 80 ms
15,540 KB
testcase_36 AC 99 ms
15,608 KB
testcase_37 AC 95 ms
15,416 KB
testcase_38 AC 96 ms
15,564 KB
testcase_39 AC 112 ms
15,540 KB
testcase_40 AC 98 ms
15,564 KB
testcase_41 AC 101 ms
15,596 KB
testcase_42 AC 97 ms
15,616 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

require 'strscan'

N = gets.to_i
S = gets.chomp

scanner = StringScanner.new(S)

until scanner.eos?
  next if scanner.skip(/w[ao?]|n|\?[ao]|\?/)

  puts "No"
  exit
end

puts "Yes"
0