This file contains hidden or 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.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.PrintWriter; | |
import java.math.BigInteger; | |
import java.util.StringTokenizer; | |
public class Criptografia { | |
public static void main(String[] args) throws IOException { | |
PrintWriter out = new PrintWriter(System.out); |
This file contains hidden or 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
public class Commands { | |
public static long gcd(long a, long b) { | |
long t; | |
while (b != 0) { | |
t = b; | |
b = a % b; | |
a = t; | |
} | |
return a; |