ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

Vladimir Yakovlev (USU) C# programming language is supported now (+) [7] 31 Dec 2006 01:28
The compiler is Microsoft ® Visual C# 2005 Compiler version 8.00.50727.42 (.NET Framework 2.0).
The most of problems can be solved using C#, except for those that can't be solved with Java (1220, 1275, 1306).

Edited by author 31.12.2006 01:31
Vladimir Yakovlev (USU) Sample solution for A+B Problem in C# (+) [6] 31 Dec 2006 01:36
using System;

public class Sum
{
    public static void Main()
    {
        string[] tokens = Console.ReadLine().Split(' ');
        Console.WriteLine(int.Parse(tokens[0]) + int.Parse(tokens[1]));
    }
}
Vladimir Yakovlev (USU) If you need to read or write double (+) [5] 5 Jan 2007 22:59
If you need to read or write double in your program, do not forget set culture to InvariantCulture:
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
Vladimir Yakovlev (USU) One more hint for C# programmers (+) [4] 10 Jan 2007 20:01
In some problems numbers are not necessarily separated with single space.

Use
Console.ReadLine().Split(new char[] {' ', '\t'}, StringSplitOptions.RemoveEmptyEntries)
instread of
Console.ReadLine().Trim().Split(' ')
Vladimir Yakovlev (USU) C# compiler updated [2] 8 Feb 2009 02:57
C# compiler has been updated to Microsoft Visual C# 2008 version 3.5.30729.1 (.NET Framework 3.5)
Vladimir Yakovlev (USU) FAQ section on C# added (-) [1] 12 Feb 2009 03:03
Vladimir Yakovlev (USU) The default decimal separator is now set to “.” (+) 13 Feb 2009 03:46
The default decimal separator is now set to “.”
All C# submissions to problems with floating-point numbers in input or output were rejudged. The verticts of about 800 submissions of 100 authors were changed.
Anton Pavlov Re: One more hint for C# programmers (+) 27 Apr 2015 21:04
I have try to make some optimisation of input-output, but native read of stream does not bring some significant effect, and try of use Win32 api functions faults with runtime error on test 1 of task 1000. Where is the way to looking for?