-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprob_a.cs
More file actions
35 lines (33 loc) · 809 Bytes
/
Copy pathprob_a.cs
File metadata and controls
35 lines (33 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Solution
{
class Solution
{
static void Main(string[] args)
{
Console.ReadLine();
var c = Console.ReadLine();
if (c.EndsWith("."))
{
c = c.Substring(0, c.Length - 1);
}
var inp = c.Split(' ');
int res = 0;
string[] taka = { "TAKAHASHIKUN", "Takahashikun", "takahashikun" };
foreach (var t in inp)
{
foreach (var n in taka)
{
if (t == n)
{
res++;
}
}
}
Console.WriteLine(res);
}
}
}