結果

問題 No.1005 BOT対策
ユーザー hoktohokto
提出日時 2020-04-27 14:34:29
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 954 bytes
コンパイル時間 54 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2024-05-01 12:29:35
合計ジャッジ時間 3,463 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
12,416 KB
testcase_01 AC 74 ms
12,160 KB
testcase_02 AC 73 ms
12,160 KB
testcase_03 AC 73 ms
12,160 KB
testcase_04 WA -
testcase_05 AC 75 ms
12,288 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 74 ms
12,288 KB
testcase_09 AC 78 ms
12,160 KB
testcase_10 AC 73 ms
12,160 KB
testcase_11 AC 76 ms
12,160 KB
testcase_12 WA -
testcase_13 AC 83 ms
12,288 KB
testcase_14 AC 78 ms
12,160 KB
testcase_15 AC 85 ms
12,160 KB
testcase_16 AC 84 ms
12,288 KB
testcase_17 AC 87 ms
12,288 KB
testcase_18 AC 83 ms
12,160 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 80 ms
12,032 KB
testcase_22 AC 78 ms
12,160 KB
testcase_23 AC 78 ms
12,288 KB
testcase_24 AC 81 ms
12,160 KB
testcase_25 AC 75 ms
12,288 KB
testcase_26 AC 72 ms
12,160 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 76 ms
12,288 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

def get_i() #空白区切の入力を数値(整数)の配列で返す
  return gets.chomp.split(" ").map(&:to_i)
end
def get_f() #空白区切の入力を数値(実数)の配列で返す
  return gets.chomp.split(" ").map(&:to_f)
end
def get() #空白区切の入力を文字列の配列で返す
  return gets.chomp.split(" ")
end
def get_nsp() #入力されたものを一文字ずつに区切った文字列の配列で返す
  return gets.chomp.split("")
end
def yn_judge(bool,y="Yes",n="No") #boolに真偽を投げることで、trueならy、falseならnの値を出力する
  return bool ? y : n 
end
def array(size1,init=nil,size2=-1) #size2に二次元配列時の最初の要素数、size1に次の配列の大きさ、initに初期値を投げることでその配列を返す
  if size2==-1
    return Array.new(size1){init}
  else
    return Array.new(size2){Array.new(size1){init}}
  end
end

S=gets.chomp
T=gets.chomp
puts S.scan(T).size
0