using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
namespace TokenChecker
{
class Program
{
static private string[] GetTokens(String fileName)
{
return File.ReadAllText(fileName).Split(null as char[], StringSplitOptions.RemoveEmptyEntries);
}
static private bool AreEqual(string[] arr1, string[] arr2)
{
if (arr1 == null || arr2 == null)
return false;
if (arr1.Length != arr2.Length)
return false;
return !arr1.Where((t, i) => !t.Equals(arr2[i])).Any();
}
/*
* args[0] - test input file path
* args[1] - user output file path
* args[2] - test output file path
*/
static void Main(string[] args)
{
if(!AreEqual(GetTokens(args[1]), GetTokens(args[2])))
Console.WriteLine("Wrong Answer");
}
}
}