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

в чем проблема??? Java
Posted by Nikita 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));
}
}
Re: в чем проблема??? Java
Posted by Nikita 15 Mar 2016 20:39
В общем она требует ввод данных, а не определение переменных

Edited by author 15.03.2016 20:58

Edited by author 15.03.2016 20:58
Re: в чем проблема??? Java
Posted by Slavchik 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);
    }
}
Re: в чем проблема??? Java
Posted by Melholm 7 Jul 2016 19:48
import java.util.*; делал???