- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
package gcd; import java.io.*; class gcd { public static void main (String args []) throws IOException { BufferedReader dataIn= new BufferedReader(new InputStreamReader(System.in)); String strEntry; String str_C; String ans; int a[] = new int[10000]; int n=0,i=0,j=0,c=0,max=0,min=0; long prod=0; strEntry = dataIn.readLine(); n = Integer.parseInt(strEntry); for(i=1;i<=n;i++) { str_C = dataIn.readLine(); c = … |
|
[code] public class Caesar01 { public static void main(String[] args) { String str = "NS BFW, JAJSYX TK NRUTWYFSHJ FWJ YMJ WJXZQY TK YWNANFQ HFZXJX"; int key = 5; String encrypted = encrypt(str, key); System.out.println(encrypted); } public static String encrypt(String str, int key) { String encrypted = " "; for(int … |
|
import java.util.Scanner; public class stack { /** * @param args */ public static void main(String[] args) { int result ; int output ; Scanner num = new Scanner(System.in); int input = num.nextInt(); for(int j = 0;j<input;j++) { int output1 = 0; output = num.nextInt(); for(int i = 0;i<output;i++) { if(output … |
|
package casesar02; import java.util.Scanner; public class casesar02 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int key = 4; // scan.nextLine(); String str = scan.nextLine(); String encrypted = encrypt(str, key); System.out.println(encrypted); } public static String encrypt(String str, int key) { String encrypted = ""; for (int … |
|
[code] package caesar; import java.util.Scanner; public class Caesar { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int key = scan.nextInt(); String str = scan.next(); String encrypted = encrypt(str, key); System.out.println(encrypted); } CAUSES public static String encrypt(String str, int key) { String encrypted = " "; for(int … |
|
You are the leader of a crack intelligence unit, and today your team intercepted a set of encrypted messages ('ciphertexts') from 'IndyBoy', a well known and much feared terrorist leader. It is thought that these ciphertexts contain instructions to his henchmen on which targets to attack next. Your team knows … |