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

Accepted in Java 1.7 , FreePascal 2.0.4 and Visual C# 2010
Posted by Axmadjon 6 Jun 2014 12:46
//*********************************************
//FreePascal 2.0.4
var a,b,u:longint;
begin readln(a,b);
for u:=1 to b do inc(a);
writeln(a);
end.

//*********************************************
//Visual C# 2010
using System;
public class Sum
{
    private static void Main()
    {
        string[] tokens = Console.ReadLine().Split(' ');
        Console.WriteLine(int.Parse(tokens[0]) + int.Parse(tokens[1]));
    }
}

//*********************************************
//Java 1.7
import java.util.Scanner;
public class test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println(sc.nextInt() + sc.nextInt());
    }
}