結果

問題 No.3081 HQ9+
ユーザー maimai
提出日時 2021-04-01 22:15:25
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 100 bytes
コンパイル時間 60 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 19,584 KB
最終ジャッジ日時 2024-06-01 03:57:59
合計ジャッジ時間 3,047 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
12,160 KB
testcase_01 AC 95 ms
12,416 KB
testcase_02 AC 94 ms
12,288 KB
testcase_03 AC 88 ms
12,160 KB
testcase_04 AC 90 ms
12,288 KB
testcase_05 AC 93 ms
12,160 KB
testcase_06 AC 88 ms
12,160 KB
testcase_07 AC 89 ms
12,416 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 92 ms
12,160 KB
testcase_12 AC 92 ms
12,160 KB
testcase_13 AC 91 ms
12,160 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 91 ms
12,288 KB
testcase_18 AC 95 ms
18,944 KB
testcase_19 AC 89 ms
12,288 KB
testcase_20 AC 99 ms
19,456 KB
testcase_21 AC 99 ms
19,456 KB
testcase_22 AC 100 ms
19,584 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:7: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Syntax OK

ソースコード

diff #

gets
li = gets.chomp
abort unless li=~/^[A-Za-z]+$/
if li=~/^[^H]*Q[^H]*$/
  puts li
else
  p -1
end
0