Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Problem Description

Detail instraction can be found here.

Solution

Compile with javac Solution.java and run with java Solution.

import java.util.*;
import java.io.*;

public class Solution {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        int n = in.nextInt();
        if (n == 2)
            System.out.println(2);
        else
            System.out.println(1);
    }
}

This is only for discussion and communication. Please don't use this for submission of assignments.