|
From: <di...@us...> - 2008-08-06 21:29:41
|
Revision: 308
http://acmcontester.svn.sourceforge.net/acmcontester/?rev=308&view=rev
Author: dixond
Date: 2008-08-06 21:29:48 +0000 (Wed, 06 Aug 2008)
Log Message:
-----------
Project Checker updated as Brus wish)
Modified Paths:
--------------
ACMServer/trunk/sharp tester/Checker/Checker/bin/Debug/Checker.dll
ACMServer/trunk/sharp tester/Checker/Checker/bin/Debug/Checker.pdb
ACMServer/trunk/sharp tester/Checker/Checker/obj/Debug/Checker.dll
ACMServer/trunk/sharp tester/Checker/Checker/obj/Debug/Checker.pdb
ACMServer/trunk/sharp tester/Checker/Checker/obj/Debug/ResolveAssemblyReference.cache
ACMServer/trunk/sharp tester/Checker/Checker.sln
Added Paths:
-----------
ACMServer/trunk/sharp tester/Checker/Checker/
ACMServer/trunk/sharp tester/Checker/Checker/Checker.cs
ACMServer/trunk/sharp tester/Checker/Checker/Checker.csproj
ACMServer/trunk/sharp tester/Checker/Checker/Properties/
ACMServer/trunk/sharp tester/Checker/Checker/ReadMe!.txt
ACMServer/trunk/sharp tester/Checker/Checker/bin/
ACMServer/trunk/sharp tester/Checker/Checker/obj/
ACMServer/trunk/sharp tester/Checker/Checker/scriptExample.txt
Removed Paths:
-------------
ACMServer/trunk/sharp tester/Checker/Checker.cs
ACMServer/trunk/sharp tester/Checker/Checker.csproj
ACMServer/trunk/sharp tester/Checker/Checker.suo
ACMServer/trunk/sharp tester/Checker/Properties/
ACMServer/trunk/sharp tester/Checker/ReadMe!.txt
ACMServer/trunk/sharp tester/Checker/bin/
ACMServer/trunk/sharp tester/Checker/obj/
ACMServer/trunk/sharp tester/Checker/scriptExample.txt
Copied: ACMServer/trunk/sharp tester/Checker/Checker/Checker.cs (from rev 307, ACMServer/trunk/sharp tester/Checker/Checker.cs)
===================================================================
--- ACMServer/trunk/sharp tester/Checker/Checker/Checker.cs (rev 0)
+++ ACMServer/trunk/sharp tester/Checker/Checker/Checker.cs 2008-08-06 21:29:48 UTC (rev 308)
@@ -0,0 +1,48 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.IO;
+
+using ScriptDotNet;
+
+namespace Tester
+{
+ public enum CheckResult
+ {
+ AC,
+ WA,
+ PE,
+ OE
+ }
+ public class Checker
+ {
+ public string input;
+ public string output;
+ public string correctOutput;
+ public string scriptPath;
+
+ public Checker() { }
+
+ public Checker(string scriptPath,string input, string output, string correctOutput)
+ {
+ this.input = input;
+ this.output = output;
+ this.correctOutput = output;
+ this.scriptPath = scriptPath;
+ }
+
+ public Checker(string scriptPath, string input, string output)
+ : this(scriptPath,input,output,"") { }
+
+ public CheckResult Check()
+ {
+ Script scr = Script.Compile(File.ReadAllText(scriptPath));
+ scr.AddBuildInObject(input);
+ scr.AddBuildInObject(output);
+ scr.AddBuildInObject(correctOutput);
+ scr.Execute();
+ string result = scr.Lookup("result").ToString();
+ return (CheckResult)Enum.Parse(typeof(CheckResult), result);
+ }
+ }
+}
Copied: ACMServer/trunk/sharp tester/Checker/Checker/Checker.csproj (from rev 307, ACMServer/trunk/sharp tester/Checker/Checker.csproj)
===================================================================
--- ACMServer/trunk/sharp tester/Checker/Checker/Checker.csproj (rev 0)
+++ ACMServer/trunk/sharp tester/Checker/Checker/Checker.csproj 2008-08-06 21:29:48 UTC (rev 308)
@@ -0,0 +1,48 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{BAFD4E93-B37A-416F-807D-E2515ECB6498}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Checker</RootNamespace>
+ <AssemblyName>Checker</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="ScriptDotNet, Version=1.0.0.1, Culture=neutral, processorArchitecture=MSIL" />
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Checker.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
Copied: ACMServer/trunk/sharp tester/Checker/Checker/ReadMe!.txt (from rev 307, ACMServer/trunk/sharp tester/Checker/ReadMe!.txt)
===================================================================
--- ACMServer/trunk/sharp tester/Checker/Checker/ReadMe!.txt (rev 0)
+++ ACMServer/trunk/sharp tester/Checker/Checker/ReadMe!.txt 2008-08-06 21:29:48 UTC (rev 308)
@@ -0,0 +1,15 @@
+>>>>>>>>>>>>>>\xD4\xEE\xF0\xEC\xE0\xF2 \xF1\xEA\xF0\xB3\xEF\xF2\xEE\xE2\xEE\xE3\xEE \xF4\xE0\xE9\xEB\xF3<<<<<<<<<<<<<<
+\xD1\xEA\xF0\xB3\xEF\xF2\xE8 \xEF\xE8\xF8\xF3\xF2\xFC\xF1\xFF \xED\xE0 \xEC\xEE\xE2\xB3 Script.NET (\xF1\xE8\xED\xF2\xE0\xEA\xF1\xE8\xF1 \xEE\xEF\xE8\xF8\xF3 \xEF\xB3\xE7\xED\xB3\xF8\xE5)
+
+\xD1\xEA\xF0\xB3\xEF\xF2\xF3 \xE4\xEE\xF1\xF2\xF3\xEF\xED\xB3 \xED\xE0\xF1\xF2\xF3\xEF\xED\xB3 \xE7\xEC\xB3\xED\xED\xB3:
+input - \xE2\xF5\xB3\xE4\xED\xE8\xE9 \xF2\xE5\xF1\xF2 (\xEC\xEE\xE6\xE5 \xE1\xF3\xF2\xE8 \xEF\xEE\xF0\xEE\xE6\xED\xB3\xE9)
+output - \xE2\xE8\xF5\xB3\xE4 \xEF\xF0\xEE\xE3\xF0\xE0\xEC\xE8 \xE4\xEB\xFF \xEF\xE5\xF0\xE5\xE2\xB3\xF0\xEA\xE8
+correctOutput - \xEA\xEE\xF0\xE5\xEA\xF2\xED\xE8\xE9 \xE2\xE8\xF5\xB3\xE4 (\xEC\xEE\xE6\xE5 \xE1\xF3\xF2\xE8 \xEF\xEE\xF0\xEE\xE6\xED\xB3\xE9)
+
+\xD0\xE5\xE7\xF3\xEB\xFC\xF2\xE0\xF2 \xE2\xE8\xEA\xEE\xED\xE0\xED\xED\xFF \xF1\xEA\xF0\xB3\xEF\xF2 \xE7\xE1\xE5\xF0\xB3\xE3\xE0\xBA \xF3 \xE7\xEC\xB3\xED\xED\xF3 result
+('WA','AC','PE','OE')
+>>>>>>>>>>>>>>>>>>\xCF\xF0\xE8\xEA\xEB\xE0\xE4<<<<<<<<<<<<<<<<<<<<<<<
+
+if (output==correctOutput)
+result='AC';
+else result='WA';
\ No newline at end of file
Copied: ACMServer/trunk/sharp tester/Checker/Checker/scriptExample.txt (from rev 307, ACMServer/trunk/sharp tester/Checker/scriptExample.txt)
===================================================================
--- ACMServer/trunk/sharp tester/Checker/Checker/scriptExample.txt (rev 0)
+++ ACMServer/trunk/sharp tester/Checker/Checker/scriptExample.txt 2008-08-06 21:29:48 UTC (rev 308)
@@ -0,0 +1,3 @@
+if (output==correctOutput)
+result='AC';
+else result='WA';
\ No newline at end of file
Deleted: ACMServer/trunk/sharp tester/Checker/Checker.cs
===================================================================
--- ACMServer/trunk/sharp tester/Checker/Checker.cs 2008-08-06 20:54:59 UTC (rev 307)
+++ ACMServer/trunk/sharp tester/Checker/Checker.cs 2008-08-06 21:29:48 UTC (rev 308)
@@ -1,48 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-using System.IO;
-
-using ScriptDotNet;
-
-namespace Tester
-{
- public enum CheckResult
- {
- AC,
- WA,
- PE,
- OE
- }
- public class Checker
- {
- public string input;
- public string output;
- public string correctOutput;
- public string scriptPath;
-
- public Checker() { }
-
- public Checker(string scriptPath,string input, string output, string correctOutput)
- {
- this.input = input;
- this.output = output;
- this.correctOutput = output;
- this.scriptPath = scriptPath;
- }
-
- public Checker(string scriptPath, string input, string output)
- : this(scriptPath,input,output,"") { }
-
- public CheckResult Check()
- {
- Script scr = Script.Compile(File.ReadAllText(scriptPath));
- scr.AddBuildInObject(input);
- scr.AddBuildInObject(output);
- scr.AddBuildInObject(correctOutput);
- scr.Execute();
- string result = scr.Lookup("result").ToString();
- return (CheckResult)Enum.Parse(typeof(CheckResult), result);
- }
- }
-}
Deleted: ACMServer/trunk/sharp tester/Checker/Checker.csproj
===================================================================
--- ACMServer/trunk/sharp tester/Checker/Checker.csproj 2008-08-06 20:54:59 UTC (rev 307)
+++ ACMServer/trunk/sharp tester/Checker/Checker.csproj 2008-08-06 21:29:48 UTC (rev 308)
@@ -1,48 +0,0 @@
-<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProductVersion>8.0.50727</ProductVersion>
- <SchemaVersion>2.0</SchemaVersion>
- <ProjectGuid>{BAFD4E93-B37A-416F-807D-E2515ECB6498}</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>Checker</RootNamespace>
- <AssemblyName>Checker</AssemblyName>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="ScriptDotNet, Version=1.0.0.1, Culture=neutral, processorArchitecture=MSIL" />
- <Reference Include="System" />
- <Reference Include="System.Data" />
- <Reference Include="System.Xml" />
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Checker.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
- <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
- Other similar extension points exist, see Microsoft.Common.targets.
- <Target Name="BeforeBuild">
- </Target>
- <Target Name="AfterBuild">
- </Target>
- -->
-</Project>
\ No newline at end of file
Modified: ACMServer/trunk/sharp tester/Checker/Checker.sln
===================================================================
--- ACMServer/trunk/sharp tester/Checker/Checker.sln 2008-08-06 20:54:59 UTC (rev 307)
+++ ACMServer/trunk/sharp tester/Checker/Checker.sln 2008-08-06 21:29:48 UTC (rev 308)
@@ -1,7 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Checker", "Checker.csproj", "{BAFD4E93-B37A-416F-807D-E2515ECB6498}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Checker", "Checker\Checker.csproj", "{BAFD4E93-B37A-416F-807D-E2515ECB6498}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Deleted: ACMServer/trunk/sharp tester/Checker/ReadMe!.txt
===================================================================
--- ACMServer/trunk/sharp tester/Checker/ReadMe!.txt 2008-08-06 20:54:59 UTC (rev 307)
+++ ACMServer/trunk/sharp tester/Checker/ReadMe!.txt 2008-08-06 21:29:48 UTC (rev 308)
@@ -1,15 +0,0 @@
->>>>>>>>>>>>>>\xD4\xEE\xF0\xEC\xE0\xF2 \xF1\xEA\xF0\xB3\xEF\xF2\xEE\xE2\xEE\xE3\xEE \xF4\xE0\xE9\xEB\xF3<<<<<<<<<<<<<<
-\xD1\xEA\xF0\xB3\xEF\xF2\xE8 \xEF\xE8\xF8\xF3\xF2\xFC\xF1\xFF \xED\xE0 \xEC\xEE\xE2\xB3 Script.NET (\xF1\xE8\xED\xF2\xE0\xEA\xF1\xE8\xF1 \xEE\xEF\xE8\xF8\xF3 \xEF\xB3\xE7\xED\xB3\xF8\xE5)
-
-\xD1\xEA\xF0\xB3\xEF\xF2\xF3 \xE4\xEE\xF1\xF2\xF3\xEF\xED\xB3 \xED\xE0\xF1\xF2\xF3\xEF\xED\xB3 \xE7\xEC\xB3\xED\xED\xB3:
-input - \xE2\xF5\xB3\xE4\xED\xE8\xE9 \xF2\xE5\xF1\xF2 (\xEC\xEE\xE6\xE5 \xE1\xF3\xF2\xE8 \xEF\xEE\xF0\xEE\xE6\xED\xB3\xE9)
-output - \xE2\xE8\xF5\xB3\xE4 \xEF\xF0\xEE\xE3\xF0\xE0\xEC\xE8 \xE4\xEB\xFF \xEF\xE5\xF0\xE5\xE2\xB3\xF0\xEA\xE8
-correctOutput - \xEA\xEE\xF0\xE5\xEA\xF2\xED\xE8\xE9 \xE2\xE8\xF5\xB3\xE4 (\xEC\xEE\xE6\xE5 \xE1\xF3\xF2\xE8 \xEF\xEE\xF0\xEE\xE6\xED\xB3\xE9)
-
-\xD0\xE5\xE7\xF3\xEB\xFC\xF2\xE0\xF2 \xE2\xE8\xEA\xEE\xED\xE0\xED\xED\xFF \xF1\xEA\xF0\xB3\xEF\xF2 \xE7\xE1\xE5\xF0\xB3\xE3\xE0\xBA \xF3 \xE7\xEC\xB3\xED\xED\xF3 result
-('WA','AC','PE','OE')
->>>>>>>>>>>>>>>>>>\xCF\xF0\xE8\xEA\xEB\xE0\xE4<<<<<<<<<<<<<<<<<<<<<<<
-
-if (output==correctOutput)
-result='AC';
-else result='WA';
\ No newline at end of file
Deleted: ACMServer/trunk/sharp tester/Checker/scriptExample.txt
===================================================================
--- ACMServer/trunk/sharp tester/Checker/scriptExample.txt 2008-08-06 20:54:59 UTC (rev 307)
+++ ACMServer/trunk/sharp tester/Checker/scriptExample.txt 2008-08-06 21:29:48 UTC (rev 308)
@@ -1,3 +0,0 @@
-if (output==correctOutput)
-result='AC';
-else result='WA';
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|