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

Nikita в чем проблема??? Java [3] // Problem 1000. A+B Problem 15 Mar 2016 20:25
public class AB {
public static void main(String [] args) {
int a = 1;
int b = 5;
System.out.println((a+b));
}
}
Nikita Re: в чем проблема??? Java [2] // Problem 1000. A+B Problem 15 Mar 2016 20:39
В общем она требует ввод данных, а не определение переменных

Edited by author 15.03.2016 20:58

Edited by author 15.03.2016 20:58
Slavchik Re: в чем проблема??? Java [1] // Problem 1000. A+B Problem 20 Jun 2016 18:19
Тогда в чем проблема?)))
public class Math{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextByte();
        int b = scanner.nextByte();
        System.out.print(a + b);
    }
}
Melholm Re: в чем проблема??? Java // Problem 1000. A+B Problem 7 Jul 2016 19:48
import java.util.*; делал???