Submission #855330


Source Code Expand

Copy
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace tes
{
	class contest
	{
		string s = Console.ReadLine();

            bool check = true;
            for(int i=0; i<s.Length; i++)
            {
                if (s.Count(c => c == s[i]) % 2 == 0) continue;
                else
                {
                    check = false;
                    break;
                }
            }
			
            if(check) Console.WriteLine("Yes");
            else Console.WriteLine("No");
	}
}

Submission Info

Submission Time
Task B - 美しい文字列 / Beautiful Strings
User nectar
Language C# (Mono 4.6.2.0)
Score 0
Code Size 593 Byte
Status

Compile Error

./Main.cs(14,15): error CS1519: Unexpected symbol `for' in class, struct, or interface member declaration
./Main.cs(14,27): error CS1519: Unexpected symbol `<' in class, struct, or interface member declaration
./Main.cs(14,36): error CS1519: Unexpected symbol `;' in class, struct, or interface member declaration
./Main.cs(14,40): error CS1519: Unexpected symbol `++' in class, struct, or interface member declaration
./Main.cs(15,13): error CS9010: Primary constructor body is not allowed
./Main.cs(24,14): error CS1519: Unexpected symbol `if' in class, struct, or interface member declaration
./Main.cs(24,21): error CS1519: Unexpected symbol `)' in class, struct, or interface member declaration
./Main.cs(24,40): error CS1519: Unexpected symbol `(' in class, struct, or interface member declaration
./Main.cs(25,35): error CS1519: Unexpected symbol `(' in class, struct, or interface member declaration