|
From: <Or...@us...> - 2008-08-17 20:30:38
|
Revision: 326
http://acmcontester.svn.sourceforge.net/acmcontester/?rev=326&view=rev
Author: Oracle_
Date: 2008-08-17 20:30:41 +0000 (Sun, 17 Aug 2008)
Log Message:
-----------
Added new version
Added Paths:
-----------
ACMServer/trunk/sharp tester/SourceTest 2.0/Load/
ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Load.csproj
ACMServer/trunk/sharp tester/SourceTest 2.0/Load/LoaderClass.cs
ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Properties/
ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Properties/AssemblyInfo.cs
ACMServer/trunk/sharp tester/SourceTest 2.0/Main/
ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Main.csproj
ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Properties/
ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Properties/AssemblyInfo.cs
ACMServer/trunk/sharp tester/SourceTest 2.0/Main/TestEnvClass.cs
ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/
ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Plugin.csproj
ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/PluginClass.cs
ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Properties/
ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Properties/AssemblyInfo.cs
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/DLLTester.csproj
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/Program.cs
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/Properties/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/Properties/AssemblyInfo.cs
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/AllowedFunc.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/InData.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/TesterInData.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/D7.bat
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/DCC32.exe here.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/dcc32.cfg
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/includeD7/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/includeD7/includes here.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/rlink32.dll here.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/out.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/ProblemData.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test1/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test1/in.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test1/out.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test10/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test10/in.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test10/out.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test11/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test11/in.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test11/out.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test12/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test12/in.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test12/out.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test13/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test13/in.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test13/out.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test14/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test14/in.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test14/out.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test15/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test15/in.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test15/out.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test2/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test2/in.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test2/out.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test3/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test3/in.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test3/out.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test4/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test4/in.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test4/out.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test5/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test5/in.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test5/out.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test6/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test6/in.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test6/out.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test7/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test7/in.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test7/out.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test8/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test8/in.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test8/out.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test9/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test9/in.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test9/out.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/scriptExample.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/source.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err1.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err10.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err11.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err12.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err13.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err14.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err15.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err2.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err3.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err4.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err5.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err6.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err7.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err8.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/err9.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out1.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out10.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out11.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out12.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out13.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out14.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out15.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out2.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out3.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out4.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out5.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out6.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out7.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out8.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/out9.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/source.exe
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/temp/source.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0.sln
ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0.suo
ACMServer/trunk/sharp tester/SourceTest 2.0/Test/
ACMServer/trunk/sharp tester/SourceTest 2.0/Test/AdvAPI32.lib here.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/Test/AssemblyInfo.cpp
ACMServer/trunk/sharp tester/SourceTest 2.0/Test/CompileClass.cpp
ACMServer/trunk/sharp tester/SourceTest 2.0/Test/CompileClass.h
ACMServer/trunk/sharp tester/SourceTest 2.0/Test/DbgHelp.lib here.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/Test/NetAPI32.lib here.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/Test/SecureClass.cpp
ACMServer/trunk/sharp tester/SourceTest 2.0/Test/SecureClass.h
ACMServer/trunk/sharp tester/SourceTest 2.0/Test/Test.cpp
ACMServer/trunk/sharp tester/SourceTest 2.0/Test/Test.h
ACMServer/trunk/sharp tester/SourceTest 2.0/Test/Test.vcproj
ACMServer/trunk/sharp tester/SourceTest 2.0/Test/User32.lib here.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/Test/UserEnv.lib here.txt
ACMServer/trunk/sharp tester/SourceTest 2.0/VirtualPlugin/
ACMServer/trunk/sharp tester/SourceTest 2.0/VirtualPlugin/Properties/
ACMServer/trunk/sharp tester/SourceTest 2.0/VirtualPlugin/Properties/AssemblyInfo.cs
ACMServer/trunk/sharp tester/SourceTest 2.0/VirtualPlugin/VirtPlugin.cs
ACMServer/trunk/sharp tester/SourceTest 2.0/VirtualPlugin/VirtualPlugin.csproj
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Load.csproj
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Load.csproj (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Load.csproj 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.21022</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{77676781-AE80-47DB-9A4D-204B97BE955D}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Load</RootNamespace>
+ <AssemblyName>Load</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </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="System" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="LoaderClass.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\VirtualPlugin\VirtualPlugin.csproj">
+ <Project>{6AC363DA-BBBF-4809-8D42-A5391A918630}</Project>
+ <Name>VirtualPlugin</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\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
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/Load/LoaderClass.cs
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/Load/LoaderClass.cs (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/Load/LoaderClass.cs 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1,219 @@
+using System;
+using System.Text;
+using System.IO;
+using VirtualPlugin;
+using System.Reflection;
+
+namespace Load
+{
+ public class DataLoader
+ {
+ public string path;
+ public int CodeLimit=65536;
+ public int CompilationTimeLimit=10000;
+ public int MemoryLimit=67108864;
+ public int OutputLimit=20000000;
+ public int RealTimeLimit=20000;
+ public int TimeLimit=1000;
+ public int MaxThreads=2;
+ public int PerTestCount=2;
+ public string InputName="in.txt";
+ public string OutputName="out.txt";
+ public string PointFileName="points.txt";
+ public string TestFolderName="test*";
+ public string Checker="";
+ public string CheckPlugin = "";
+
+ public DataLoader(string Path)
+ {
+ path=Path;
+ }
+
+ public bool Load()
+ {
+ if (!File.Exists(path))
+ return false;
+ StreamReader f = File.OpenText(path);
+ while (!f.EndOfStream)
+ {
+ string[] param=f.ReadLine().Split(' ');
+ switch (param[0])
+ {
+ case "CodeLimit:": CodeLimit = Convert.ToInt32(param[1]); break;
+ case "CompilationTimeLimit:": CompilationTimeLimit = Convert.ToInt32(param[1]); break;
+ case "MemoryLimit:": MemoryLimit = Convert.ToInt32(param[1]); break;
+ case "OutputLimit:": OutputLimit = Convert.ToInt32(param[1]); break;
+ case "RealTimeLimit:": RealTimeLimit = Convert.ToInt32(param[1]); break;
+ case "TimeLimit:": TimeLimit = Convert.ToInt32(param[1]); break;
+ case "MaxThreads:": MaxThreads = Convert.ToInt32(param[1]); break;
+ case "PerTestCount:": PerTestCount = Convert.ToInt32(param[1]); break;
+ case "InputName:": InputName = param[1]; break;
+ case "OutputName:": OutputName = param[1]; break;
+ case "PointFileName:": PointFileName = param[1]; break;
+ case "TestFolderName:": TestFolderName = param[1]; break;
+ case "Checker:": Checker = param[1]; break;
+ case "CheckPlugin:": CheckPlugin = param[1]; break;
+ }
+ }
+ return true;
+ }
+ }
+
+ public class Test
+ {
+ public string input;
+ public string output;
+ public int points;
+
+ public string InPath;
+ public string OutPath;
+ public string PointPath;
+
+ public Test()
+ {
+
+ }
+
+ public void Load(string inname,string outname,string pointname)
+ {
+ InPath = inname;
+ OutPath = outname;
+ PointPath = pointname;
+ if (File.Exists(inname))
+ input = File.OpenText(inname).ReadToEnd();
+ else
+ input = "";
+
+ if (File.Exists(outname))
+ output = File.OpenText(outname).ReadToEnd();
+ else
+ output = "";
+
+ if (File.Exists(pointname))
+ points = Convert.ToInt32(File.OpenText(pointname).ReadToEnd());
+ else
+ points = 1;
+ }
+ }
+
+ public class TestLoader
+ {
+ private string MaskToString(string mask, int numb)
+ {
+ int star;
+ if ((star=mask.IndexOf('*')) == -1)
+ return mask;
+ int cnt=0;
+ while (star < mask.Length && mask[star] == '*')
+ {
+ star++;
+ cnt++;
+ }
+ string NS = numb.ToString();
+ while (NS.Length < cnt) NS = '0' + NS;
+ return mask.Replace(mask.Substring(star - cnt, cnt), NS); ;
+ }
+
+ public string InName;
+ public string OutName;
+ public string PointName;
+ public string FolderName;
+ public string ProblemPath;
+ public Test[] tests;
+
+ public TestLoader(string _InName, string _OutName, string _PointName, string _FolderName, string _ProblemPath)
+ {
+ InName = _InName;
+ OutName = _OutName;
+ PointName = _PointName;
+ FolderName = _FolderName;
+ ProblemPath = _ProblemPath;
+ }
+
+ public void Load()
+ {
+ int cnt = 0;
+ while (true)
+ {
+ string curInPath = ProblemPath + MaskToString(FolderName,cnt+1)+"\\"+MaskToString(InName,cnt+1);
+ string curOutPath = ProblemPath + MaskToString(FolderName, cnt+1) + "\\" + MaskToString(OutName, cnt+1);
+ string curPointPath = ProblemPath + MaskToString(FolderName, cnt+1) + "\\" + MaskToString(PointName, cnt+1);
+ if (File.Exists(curInPath)||File.Exists(curOutPath)||File.Exists(curPointPath))
+ cnt++;
+ else
+ break;
+ }
+ tests = new Test[cnt];
+ for (int i = 1; i <= cnt; i++)
+ {
+ string curInPath = ProblemPath + MaskToString(FolderName, i) + "\\" + MaskToString(InName, i);
+ string curOutPath = ProblemPath + MaskToString(FolderName, i) + "\\" + MaskToString(OutName, i);
+ string curPointPath = ProblemPath + MaskToString(FolderName, i) + "\\" + MaskToString(PointName, i);
+ tests[i - 1] = new Test();
+ tests[i - 1].Load(curInPath, curOutPath, curPointPath);
+ }
+ }
+ }
+
+ public class PluginLoader
+ {
+ public VirtPlugin p;
+ public string filename;
+
+ public PluginLoader(string FileName)
+ {
+ filename = FileName;
+ }
+
+ public bool Load()
+ {
+ if (File.Exists(filename) == false)
+ {
+ return false;
+ }
+
+ Assembly assembly;
+ try
+ {
+ assembly = Assembly.LoadFrom(filename);
+ }
+ catch
+ {
+ return false;
+ }
+ if (assembly != null)
+ {
+ Type[] types = assembly.GetExportedTypes();
+ foreach (Type t in types)
+ {
+ try
+ {
+ if (t.IsClass && !t.IsAbstract)
+ if (t.GetInterface(typeof(VirtPlugin).FullName) != null || t.IsSubclassOf(typeof(VirtPlugin)))
+ {
+ p = (VirtPlugin)Activator.CreateInstance(t);
+ return true;
+ }
+ }
+ catch (System.Reflection.TargetInvocationException)
+ {
+
+ }
+ catch (System.MissingMethodException)
+ {
+
+ }
+ catch (System.InvalidCastException)
+ {
+
+ }
+ catch
+ {
+
+ }
+ }
+ }
+ return false;
+ }
+ }
+}
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Properties/AssemblyInfo.cs
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Properties/AssemblyInfo.cs (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/Load/Properties/AssemblyInfo.cs 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Load")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Home")]
+[assembly: AssemblyProduct("Load")]
+[assembly: AssemblyCopyright("Copyright © Home 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("91b77ead-03cd-40a1-b86f-62ec1cb2fe98")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Main.csproj
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Main.csproj (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Main.csproj 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.21022</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{A9377496-295B-4271-A078-C7A925CC2CD8}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Main</RootNamespace>
+ <AssemblyName>Main</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </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="System" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="TestEnvClass.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Load\Load.csproj">
+ <Project>{77676781-AE80-47DB-9A4D-204B97BE955D}</Project>
+ <Name>Load</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\Test\Test.vcproj">
+ <Project>{036108C1-B126-4DC6-95D6-4D6543C8BFF7}</Project>
+ <Name>Test</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\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
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Properties/AssemblyInfo.cs
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Properties/AssemblyInfo.cs (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/Main/Properties/AssemblyInfo.cs 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Main")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Home")]
+[assembly: AssemblyProduct("Main")]
+[assembly: AssemblyCopyright("Copyright © Home 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("42a47bfc-a4ee-4434-a87d-cb1708d36b1b")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/Main/TestEnvClass.cs
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/Main/TestEnvClass.cs (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/Main/TestEnvClass.cs 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1,40 @@
+using System;
+using System.IO;
+using Test;
+using Load;
+
+namespace Main
+{
+ public class TestEnv
+ {
+ public string ProblemPath;
+ public string TempPath;
+ public string CompPath;
+ public string Source;
+ public Compiler comp;
+ public Runner run;
+
+ public TestEnv(string Source,string CompPath,string TempPath,string ProblemPath)
+ {
+ this.Source = Source;
+ this.TempPath = Path.GetFullPath(TempPath);
+ this.CompPath = Path.GetFullPath(CompPath);
+ this.ProblemPath = Path.GetFullPath(ProblemPath);
+ }
+
+ public void Compile()
+ {
+ DataLoader dat = new DataLoader(ProblemPath + "ProblemData.txt");
+ dat.Load();
+ string[] InData=System.IO.File.ReadAllLines("TesterInData.txt");
+ comp=new Compiler(CompPath,Source,TempPath,dat.CompilationTimeLimit,Convert.ToInt32(InData[0]));
+ comp.Compile();
+ }
+
+ public void RunAllTests(SecureType SecType)
+ {
+ run = new Runner(SecType,ProblemPath,comp.ExeFile,TempPath,comp.CONST_SLEEP);
+ run.RunTests();
+ }
+ }
+}
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Plugin.csproj
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Plugin.csproj (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Plugin.csproj 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.21022</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{C43666B0-F0AF-4122-A0A8-8C2ED951BC4E}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Plugin</RootNamespace>
+ <AssemblyName>Plugin</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </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="System" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="PluginClass.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\VirtualPlugin\VirtualPlugin.csproj">
+ <Project>{6AC363DA-BBBF-4809-8D42-A5391A918630}</Project>
+ <Name>VirtualPlugin</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\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
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/PluginClass.cs
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/PluginClass.cs (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/PluginClass.cs 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1,40 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using VirtualPlugin;
+
+namespace Plugin
+{
+ public class Plugin:VirtPlugin
+ {
+ public override bool TimeLimit(int UsedTime, int TL, ref string Details)
+ {
+ Details = "";
+ return UsedTime > TL;
+ }
+
+ public override bool MemoryLimit(int UsedMemory, int ML, ref string Details)
+ {
+ Details = "";
+ return UsedMemory > ML;
+ }
+
+ public override bool OutputLimit(int OutputSize, int OL, ref string Details)
+ {
+ Details = "";
+ return OutputSize > OL;
+ }
+
+ public override bool RealTimeLimit(int UsedRealTime, int RTL, ref string Details)
+ {
+ Details = "";
+ return UsedRealTime > RTL;
+ }
+
+ public override bool CodeLimit(string source, int CL, ref string Details)
+ {
+ Details = "";
+ return source.Length > CL;
+ }
+ }
+}
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Properties/AssemblyInfo.cs
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Properties/AssemblyInfo.cs (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/Plugin/Properties/AssemblyInfo.cs 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("Plugin")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Home")]
+[assembly: AssemblyProduct("Plugin")]
+[assembly: AssemblyCopyright("Copyright © Home 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("515fab2a-b9c0-4bfe-aae4-cefe7d7cb77e")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/DLLTester.csproj
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/DLLTester.csproj (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/DLLTester.csproj 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.21022</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{7FA90C26-FD23-4558-A3EE-DBD74A3311F8}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>SourceTest_2._0</RootNamespace>
+ <AssemblyName>SourceTest 2.0</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </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="System" />
+ <Reference Include="System.Core">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Xml.Linq">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data.DataSetExtensions">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\Main\Main.csproj">
+ <Project>{A9377496-295B-4271-A078-C7A925CC2CD8}</Project>
+ <Name>Main</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\Test\Test.vcproj">
+ <Project>{036108C1-B126-4DC6-95D6-4D6543C8BFF7}</Project>
+ <Name>Test</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\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
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/Program.cs
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/Program.cs (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/Program.cs 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.IO;
+using Main;
+using Test;
+
+namespace SourceTest
+{
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ string[] data=File.ReadAllLines("InData.txt");
+ TestEnv test = new TestEnv(File.ReadAllText("source.txt"),data[0],data[1],data[2]);
+ test.Compile();
+ Console.WriteLine("Compile result: {0}, details: {1}, usedtime:{2}",test.comp.Result.ToString(),test.comp.Details,test.comp.UsedTime);
+ Console.WriteLine("Comp Output: {0}", test.comp.CompilerOutput);
+ if (test.comp.Result == Test.CompRes.OK)
+ {
+ test.RunAllTests(SecureType.Double);
+
+ for (int i = 0; i < test.run.results.Length; i++)
+ {
+ Console.WriteLine("Test #{0} result: {1}, details: {2}, usedtime:{3}, usedRealTime: {4}, usedmemory: {5}", i + 1,
+ test.run.results[i].res, test.run.results[i].Details, test.run.results[i].UsedTime, test.run.results[i].UsedRealTime, test.run.results[i].UsedMemory);
+ }
+ }
+ Console.ReadKey();
+ }
+ }
+}
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/Properties/AssemblyInfo.cs
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/Properties/AssemblyInfo.cs (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/Properties/AssemblyInfo.cs 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("SourceTest 2.0")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("Home")]
+[assembly: AssemblyProduct("SourceTest 2.0")]
+[assembly: AssemblyCopyright("Copyright © Home 2008")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("aeb8bd6d-2d70-4d0f-a8b3-5e75bb3bf7f3")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/AllowedFunc.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/AllowedFunc.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/AllowedFunc.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1,57 @@
+kernel32.dll DeleteCriticalSection
+kernel32.dll LeaveCriticalSection
+kernel32.dll EnterCriticalSection
+kernel32.dll InitializeCriticalSection
+kernel32.dll VirtualFree
+kernel32.dll VirtualAlloc
+kernel32.dll LocalFree
+kernel32.dll LocalAlloc
+kernel32.dll GetVersion
+kernel32.dll GetCurrentThreadId
+kernel32.dll GetThreadLocale
+kernel32.dll GetStartupInfoA
+kernel32.dll GetLocaleInfoA
+kernel32.dll GetCommandLineA
+kernel32.dll FreeLibrary
+kernel32.dll ExitProcess
+kernel32.dll WriteFile
+kernel32.dll UnhandledExceptionFilter
+kernel32.dll RtlUnwind
+kernel32.dll RaiseException
+kernel32.dll GetStdHandle
+user32.dll GetKeyboardType
+user32.dll MessageBoxA
+advapi32.dll RegQueryValueExA
+advapi32.dll RegOpenKeyExA
+advapi32.dll RegCloseKey
+kernel32.dll TlsSetValue
+kernel32.dll TlsGetValue
+kernel32.dll GetModuleHandleA
+kernel32.dll WideCharToMultiByte
+kernel32.dll lstrlenA
+kernel32.dll lstrcpynA
+kernel32.dll LoadLibraryExA
+kernel32.dll GetProcAddress
+kernel32.dll GetModuleFileNameA
+kernel32.dll FindFirstFileA
+kernel32.dll FindClose
+user32.dll LoadStringA
+user32.dll CharNextA
+oleaut32.dll SysFreeString
+kernel32.dll VirtualQuery
+kernel32.dll GetVersionExA
+kernel32.dll GetStringTypeExA
+kernel32.dll GetDiskFreeSpaceA
+kernel32.dll GetCPInfo
+kernel32.dll GetACP
+kernel32.dll EnumCalendarInfoA
+user32.dll GetSystemMetrics
+user32.dll CharToOemA
+kernel32.dll GetLastError
+kernel32.dll SetFilePointer
+kernel32.dll SetEndOfFile
+kernel32.dll ReadFile
+kernel32.dll GetFileSize
+kernel32.dll GetFileType
+kernel32.dll CreateFileA
+kernel32.dll CloseHandle
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/InData.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/InData.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/InData.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1,3 @@
+Compiler\D7.bat
+Temp\
+Problem\
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/TesterInData.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/TesterInData.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/TesterInData.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1,3 @@
+100
+TestingUser
+USER12345
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/D7.bat
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/D7.bat (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/D7.bat 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+DCC32.EXE -CC %1 -E%2
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/dcc32.cfg
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/dcc32.cfg (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/compiler/dcc32.cfg 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+-u"includeD7"
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/ProblemData.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/ProblemData.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/ProblemData.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1,9 @@
+CodeLimit: 1024
+CompilationTimeLimit: 10000
+MemoryLimit: 21000000
+OutputLimit: 1024
+RealTimeLimit: 20000
+TimeLimit: 1000
+MaxThreads: 1
+Checker: scriptExample.txt
+CheckPlugin: Plugin.dll
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test1/in.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test1/in.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test1/in.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1 1
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test1/out.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test1/out.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test1/out.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+2
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test10/in.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test10/in.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test10/in.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1334 15
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test10/out.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test10/out.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test10/out.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1349
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test11/in.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test11/in.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test11/in.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1334 15
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test11/out.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test11/out.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test11/out.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1349
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test12/in.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test12/in.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test12/in.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1334 15
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test12/out.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test12/out.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test12/out.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1349
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test13/in.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test13/in.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test13/in.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1334 15
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test13/out.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test13/out.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test13/out.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1349
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test14/in.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test14/in.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test14/in.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1334 15
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test14/out.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test14/out.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test14/out.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1349
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test15/in.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test15/in.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test15/in.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1334 15
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test15/out.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test15/out.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test15/out.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1349
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test2/in.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test2/in.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test2/in.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1334 15
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test2/out.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test2/out.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test2/out.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1349
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test3/in.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test3/in.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test3/in.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1334 15
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test3/out.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test3/out.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test3/out.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1349
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test4/in.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test4/in.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test4/in.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1334 15
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test4/out.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test4/out.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test4/out.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1349
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test5/in.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test5/in.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test5/in.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1334 15
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test5/out.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test5/out.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test5/out.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1349
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test6/in.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test6/in.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test6/in.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1334 15
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test6/out.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test6/out.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test6/out.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1349
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test7/in.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test7/in.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test7/in.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1334 15
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test7/out.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test7/out.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test7/out.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1349
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test8/in.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test8/in.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test8/in.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1334 15
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test8/out.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test8/out.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test8/out.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1349
\ No newline at end of file
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test9/in.txt
===================================================================
--- ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test9/in.txt (rev 0)
+++ ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/Debug/problem/test9/in.txt 2008-08-17 20:30:41 UTC (rev 326)
@@ -0,0 +1 @@
+1334 15
Added: ACMServer/trunk/sharp tester/SourceTest 2.0/SourceTest 2.0/bin/D...
[truncated message content] |