Advertisement
Ivakis

Stupid

Sep 4th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. /**
  4. * Created by User on 23.4.2017 г..
  5. */
  6. public class p06_StupidPassGen {
  7. public static void main(String[] args) {
  8. Scanner scanner = new Scanner(System.in);
  9.  
  10. int n = Integer.parseInt(scanner.nextLine());
  11. char l = (char) Integer.parseInt(scanner.nextLine());
  12.  
  13.  
  14. for (int i = 1; i < n; i++) {
  15. for (int s = 1; s < n; s++) {
  16. for (char t = 'a'; t <'a'+ l; t++) {
  17. for (char f = 'a'; f <'a'+ l; f++) {
  18. for (int j = 1 ; j <= n; j++) {
  19. if (j > s && j > i){
  20. System.out.print("" + i + s + t + f + j + " ");
  21. }
  22.  
  23. }
  24. }
  25. }
  26. }
  27. }
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement