Created
July 14, 2018 03:48
-
-
Save ziggy192/fc5dc2a4085b5ca298e34707e8416522 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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