|
|
back to boardCommon Boardwrong answer why? import java.util.Scanner; /** * Created by Oxygen! on 19.01.2016. */ public class ProstoeVirajenie2066Var3 { // 2066. Простое выражение public static void main(String[] args) { Scanner sc=new Scanner(System.in); int a=sc.nextInt(); int b=sc.nextInt(); int c=sc.nextInt(); if(0<=a && a==b && a==c || a>b || a>c || b==c || a>=c && b>a || a==b && b<c && c<=100) { System.out.print(a-b-c); } else if(0<=a && a<b && b<c || b>c && c<=100) { System.out.print(a-b*c); } else { System.out.print("error"); } } } |
|
|