Submission #27049


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
class Program
{
static void Main(string[] args)
{
var line = Console.ReadLine().Split();
int n = int.Parse(line[0]);
var word = line[1];
int ans = 0;
for (int i = 0; i < n; i++)
{
var words = Console.ReadLine().Split();
ans += words.Count(item => item == word);
}
Console.WriteLine(ans);
}
}

ステータス

項目 データ
問題 0003 - 聖書
ユーザー名 Zou
投稿日時 2017-09-17 21:52:09
言語 C#
状態 Accepted
得点 5
ソースコード長 423 Byte
最大実行時間 69 ms
最大メモリ使用量 11076 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
Alice_in1.txt AC 69 ms 9076 KB
1
2
Alice_in2.txt AC 38 ms 11076 KB
1
3
Alice_in3.txt AC 41 ms 11052 KB
1