結果

問題 No.3081 HQ9+
ユーザー maimai
提出日時 2021-04-01 21:46:47
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 71 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 11,392 KB
実行使用メモリ 15,372 KB
最終ジャッジ日時 2023-08-23 05:51:41
合計ジャッジ時間 3,120 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
15,156 KB
testcase_01 AC 80 ms
15,088 KB
testcase_02 AC 79 ms
15,324 KB
testcase_03 AC 84 ms
15,024 KB
testcase_04 AC 80 ms
15,112 KB
testcase_05 AC 80 ms
15,032 KB
testcase_06 AC 79 ms
15,260 KB
testcase_07 AC 78 ms
15,116 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 78 ms
15,188 KB
testcase_12 AC 78 ms
15,020 KB
testcase_13 AC 77 ms
15,032 KB
testcase_14 AC 81 ms
15,044 KB
testcase_15 AC 80 ms
15,216 KB
testcase_16 AC 80 ms
15,104 KB
testcase_17 AC 79 ms
15,256 KB
testcase_18 AC 81 ms
15,368 KB
testcase_19 AC 80 ms
15,208 KB
testcase_20 AC 82 ms
15,372 KB
testcase_21 AC 82 ms
15,284 KB
testcase_22 AC 82 ms
15,356 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:6: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Syntax OK

ソースコード

diff #

gets
li = gets.chomp
if li=~/^[^HQ]*Q[^HQ]*$/
  puts li
else
  p -1
end
0