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

Discussion of Problem 1000. A+B Problem

who can help me?
Posted by a030844202 21 Jun 2011 12:51
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace C#{

     class Program{
         static void Main(string[] args){
             int a=int.Parse(Console.ReadLine());

             int b=int.Parse(Console.ReadLine());

             Console.WriteLine(a+b);

         }

    }
}



Can anybody find the mistakes?    I do it at Visual studio ,it runs , but when i submited it ,they showed me that i was wrong.
Re: who can help me?
Posted by AterLux 21 Jun 2011 18:17
numbers can be in the same line (like in example). Read FAQ http://acm.timus.ru/help.aspx?topic=csharp
Re: who can help me?
Posted by a030844202 22 Jun 2011 04:39
it means that I should write the code the same as using System;

"public class Sum
{
    private static void Main()
    {
        string[] tokens = Console.ReadLine().Split(' ');
        Console.WriteLine(int.Parse(tokens[0]) + int.Parse(tokens[1]));
    }
}"
?
I can not understand !
Re: who can help me?
Posted by a030844202 22 Jun 2011 04:43
all the way. thank you!
Re: who can help me?
Posted by Juliet 27 Jun 2011 14:47
Apply the GOOD JOB for College ACMers to Make Large Money and Become a Millionaire

Hello, We need large no. of dedicated and hard working ACMers. The payment is good so we need ACMers to be efficient. All you have to do to get the job is to sign up at our websites. The link of our websites are given below.

http://www.PaisaLive.com/register.asp?3556638-4847933

After the registration, a confirmation email will be sent to your specified email address. Please click on the link inside the confirmation email to activate your account and recieve ACM work instantly. For any other queries you can mail the administrator.

Miss Juliet

Admin paisalive.com
Re: who can help me?
Posted by Juliet 27 Jun 2011 14:47
Apply the GOOD JOB for College ACMers to Make Large Money and Become a Millionaire

Hello, We need large no. of dedicated and hard working ACMers. The payment is good so we need ACMers to be efficient. All you have to do to get the job is to sign up at our websites. The link of our websites are given below.

http://www.PaisaLive.com/register.asp?3556638-4847933

After the registration, a confirmation email will be sent to your specified email address. Please click on the link inside the confirmation email to activate your account and recieve ACM work instantly. For any other queries you can mail the administrator.

Miss Juliet

Admin paisalive.com