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

how solve if doesn't so
Posted by Error 27 Apr 2011 23:39
package javaapplication;
import java.util.Scanner;
public class InputScan
{
    public static void main( String args[] )
    {
        Scanner input = new Scanner( System.in );
        int a;
        int b;
        System.out.println( "Эта программа отображает сумму двух чисел." );
        System.out.print( "Введите первое целое число: " );
        a = input.nextInt();
        System.out.print( "Введите второе целое число: " );
        b = input.nextInt();
        System.out.printf( "Сумма %d\n", a+b );
    }

}
Re: how solve if doesn't so
Posted by AterLux 28 Apr 2011 18:48
do not output anything except that is defined in problem description

read http://acm.timus.ru/help.aspx?topic=java