INP
STA 99
INP
ADD 99
STA 98
INP
ADD 98
STA 97
INP
STA 96
LDA 97
SUB 96
STA 95
INP
STA 94
LDA 95
SUB 94
OUT
HLT
четверг, 8 сентября 2016 г.
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int[] myArray = new int[5];
for (int i = 0; i < myArray.length; i++) {
myArray[i]= sc.nextInt();
}
int max=myArray[1];
for (int i = 0; i < myArray.length; i++) {
if( myArray[i]>max) { max=myArray[i];
}
}
System.out.print(max);
}
}
import java.util.Scanner;
class Main {
public static void main(String[] args) {
int digit;
String digitString;
Scanner sc = new Scanner(System.in);
digit = sc.nextInt();
switch (digit) {
case 1: digitString = "one";
break;
case 2: digitString = "two";
break;
case 3: digitString = "three";
break;
case 4: digitString = "four";
break;
case 5: digitString = "five";
break;
case 6: digitString = "six";
break;
case 7: digitString = "seven";
break;
case 8: digitString = "eight";
break;
case 9: digitString = "nine";
break;
default:digitString="invalid digit";
break;
}
System.out.println(digitString);
}
}
import java.util.Scanner;
class Main {
public static void main(String[] args) { int a; int b; int c; int p; double S; Scanner sc = new Scanner(System.in); a = sc.nextInt(); b= sc.nextInt(); c = sc.nextInt(); S=(a+b+c)/3;
System.out.println('S');
}
}