Skip to content

Instantly share code, notes, and snippets.

@ziggy192
Created July 14, 2018 03:48
Show Gist options
  • Save ziggy192/fc5dc2a4085b5ca298e34707e8416522 to your computer and use it in GitHub Desktop.
Save ziggy192/fc5dc2a4085b5ca298e34707e8416522 to your computer and use it in GitHub Desktop.
import java.util.Scanner;
public class Task2 {
public static Scanner scan = new Scanner(System.in);
public static void main(String[] args) {
System.out.print("n=");
long n = scan.nextLong();
System.out.println((n * 65579 + 94213) % 2018 + 1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment