結果

問題 No.1005 BOT対策
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2020-11-08 17:56:01
言語 Ruby
(3.4.1)
結果
WA  
実行時間 -
コード長 82 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-07-22 15:32:39
合計ジャッジ時間 3,408 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 27
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:4: warning: ambiguous first argument; put parentheses or a space even after `-' operator
Syntax OK

ソースコード

diff #

S=gets.chomp
T=gets.chomp
if T.size == -1 then
    puts -1
else
    S.count(T)
end
0