Submission #16085


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
t=gets.chomp.split(" ")
n=t[0].to_i
s=t[1]
ans=0
for i in 1..n do
gets.chomp.split(" ").each {|e|
if e==s then
ans=ans+1
end
}
end
puts ans

ステータス

項目 データ
問題 0003 - 聖書
ユーザー名 sinapusu2002
投稿日時 2017-04-30 12:24:25
言語 Ruby
状態 Accepted
得点 5
ソースコード長 159 Byte
最大実行時間 24 ms
最大メモリ使用量 2264 KB

セット

セット 得点 Cases
1 ALL 3 / 3 *
2 SUB1 1 / 1 Alice_in1.txt
3 SUB2 1 / 1 Alice_in2.txt

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
Alice_in1.txt AC 21 ms 2140 KB
1
2
Alice_in2.txt AC 21 ms 2200 KB
1
3
Alice_in3.txt AC 24 ms 2264 KB
1