Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Kattis_2 {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int numOfSequence = sc.nextInt();
- for (int i = 0; i <= numOfSequence; i++) {
- String fullInst = sc.next();
- //String split
- String strInst = "";
- int intInstA = 0;
- int intInstB = 0;
- if(strInst.equals("CLEAR")){
- //int sum = CLEAR(intInstA);
- }
- if(strInst.equals("SET")){
- //int sum = SET(intInstA);
- }
- if(strInst.equals("OR")){
- //int sum = OR(intInstA, intInstB);
- }
- if(strInst.equals("AND")){
- //int sum = AND(intInstA, intInstB);
- }
- }
- }
- public static int CLEAR(int i) {
- // body
- return i;
- }
- public static int SET(int i) {
- // body
- return i;
- }
- public static int OR(int i, int j) {
- // body
- return i;
- }
- public static int AND(int i, int j) {
- // body
- return i;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement