Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.25 KB | None | 0 0
  1. public class Kattis_2 {
  2.  
  3.     /**
  4.      * @param args the command line arguments
  5.      */
  6.    
  7.     public static void main(String[] args) {
  8.         Scanner sc = new Scanner(System.in);
  9.         int numOfSequence = sc.nextInt();
  10.         for (int i = 0; i <= numOfSequence; i++) {
  11.             String fullInst = sc.next();
  12.            
  13.             //String split
  14.             String strInst = "";
  15.             int intInstA = 0;
  16.             int intInstB = 0;
  17.            
  18.             if(strInst.equals("CLEAR")){
  19.                 //int sum = CLEAR(intInstA);
  20.             }
  21.            
  22.             if(strInst.equals("SET")){
  23.                 //int sum = SET(intInstA);
  24.             }
  25.            
  26.             if(strInst.equals("OR")){
  27.                 //int sum = OR(intInstA, intInstB);
  28.             }
  29.            
  30.             if(strInst.equals("AND")){
  31.                 //int sum = AND(intInstA, intInstB);
  32.             }
  33.         }
  34.     }
  35.    
  36.     public static int CLEAR(int i) {
  37.    // body
  38.     return i;
  39.     }
  40.    
  41.     public static int SET(int i) {
  42.    // body
  43.     return i;
  44.     }
  45.    
  46.     public static int OR(int i, int j) {
  47.    // body
  48.     return i;
  49.     }
  50.    
  51.     public static int AND(int i, int j) {
  52.    // body
  53.     return i;
  54.     }
  55.    
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement