Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.26 KB | None | 0 0
  1. //zad 1 i 2
  2. package tema_idqnajsi;
  3. import java.io.*;
  4. import java.util.Scanner;
  5. public class ChronicBackpain1_2 {
  6.  
  7. public static void main(String[] args) throws Exception {
  8. Scanner in = new Scanner(System.in);
  9. PrintStream penisBalls = new PrintStream("egn.txt");
  10. String bigOunce1 = null;
  11. String bigOunce2 = null;
  12. String bigOunce3 = null;
  13. String bigOunce4 = null;
  14. for(int i=0;i<10;i++)
  15. {
  16. bigOunce1=in.next();
  17. bigOunce2=in.next();
  18. bigOunce3=in.next();
  19. bigOunce4=in.next();
  20. penisBalls.print(bigOunce1);
  21. penisBalls.print(" ");
  22. penisBalls.print(bigOunce2);
  23. penisBalls.print(" ");
  24. penisBalls.print(bigOunce3);
  25. penisBalls.print(" ");
  26. penisBalls.print(bigOunce4);
  27. penisBalls.println("");
  28. }
  29. penisBalls.close();
  30. File egene = new File("egn.txt");
  31. Scanner in2 = new Scanner(egene);
  32. PrintStream ballsPenis = new PrintStream("egn2.txt");
  33. for(int i=0;i<10;i++)
  34. {
  35. bigOunce1=in2.next();
  36. bigOunce2=in2.next();
  37. bigOunce3=in2.next();
  38. bigOunce4=in2.next();
  39. ballsPenis.print(bigOunce1);
  40. ballsPenis.print(" ");
  41. ballsPenis.print(bigOunce2);
  42. ballsPenis.print(" ");
  43. ballsPenis.print(bigOunce3);
  44. ballsPenis.print(" ");
  45. ballsPenis.print(bigOunce4);
  46. ballsPenis.println("");
  47. }
  48. ballsPenis.close();
  49. in2.close();
  50. in.close();
  51. }
  52. ____________________________________________________________________________________________
  53. //zad 3
  54. package tema_idqnajsi;
  55.  
  56. import java.util.Scanner;
  57. import java.io.*;
  58. public class ChronicBackpain3 {
  59.  
  60. public static void main(String[] args) throws Exception {
  61. Scanner in = new Scanner(System.in);
  62. File flel = new File("booc.txt");
  63. Scanner in2 = new Scanner(flel);
  64. int x = in.nextInt();
  65. String kfc="ISBN_"+x;
  66. String macDondal = null;
  67. Boolean sooubway = false;
  68. while(in2.hasNextLine())
  69. {
  70. macDondal = in2.nextLine();
  71. if(macDondal.contains(kfc))
  72. {
  73. System.out.println("ima go");
  74. sooubway = true;
  75. break;
  76. }
  77. }
  78. if(sooubway == false)
  79. {
  80. System.out.println("nqma go");
  81. }
  82. in.close();
  83. in2.close();
  84. }
  85.  
  86. }
  87. ________________________________________________________________________________________
  88. //zad 4
  89. package tema_idqnajsi;
  90. import java.util.Scanner;
  91. import java.io.*;
  92. public class ChronicBackpain4 {
  93.  
  94. public static void main(String[] args) throws Exception {
  95. Scanner in = new Scanner(System.in);
  96. int x = in.nextInt();
  97. int y = Integer.MAX_VALUE;
  98. while(y>x)
  99. {
  100. y = in.nextInt();
  101. }
  102. File flel = new File("4isll.txt");
  103. PrintStream bigChungus = new PrintStream(flel);
  104. Scanner in2 = new Scanner(flel);
  105. String bigNigga = null;
  106. for(int i=0;i<x;i++)
  107. {
  108. bigNigga = in.next();
  109. bigChungus.println(bigNigga);
  110. }
  111. for(int i=0;i<y;i++)
  112. {
  113. System.out.println(in2.next());
  114. }
  115. in.close();
  116. in2.close();
  117. bigChungus.close();
  118. }
  119.  
  120. }
  121. __________________________________________________________________________________________
  122. //zad 5
  123. package tema_idqnajsi;
  124.  
  125. import java.io.File;
  126. import java.io.PrintStream;
  127. import java.util.Scanner;
  128.  
  129. public class ChronicBackpain5 {
  130.  
  131. public static void main(String[] args) throws Exception {
  132. Scanner in = new Scanner(System.in);
  133. int x = in.nextInt();
  134. int anime=0;
  135. int random=0;
  136. int animecute=0;
  137. double hentai=0;
  138. File flel = new File("ocencc.txt");
  139. File flel2 = new File("u4enicc.txt");
  140. PrintStream phallusEnlargement = new PrintStream(flel2);
  141. Scanner in2 = new Scanner(flel);
  142. String bigNiggaSoakingDamage1 = null;
  143. String bigNiggaSoakingDamage2 = null;
  144. String bigNiggaSoakingDamage3 = null;
  145. for(int i=0;i<x;i++)
  146. {
  147. bigNiggaSoakingDamage1 = in2.next();
  148. bigNiggaSoakingDamage2 = in2.next();
  149. bigNiggaSoakingDamage3 = in2.next();
  150. anime = in2.nextInt();
  151. random = in2.nextInt();
  152. animecute = in2.nextInt();
  153. hentai = (anime+random+animecute)/3;
  154. phallusEnlargement.print(bigNiggaSoakingDamage1);
  155. phallusEnlargement.print(" ");
  156. phallusEnlargement.print(bigNiggaSoakingDamage2);
  157. phallusEnlargement.print(" ");
  158. phallusEnlargement.print(bigNiggaSoakingDamage3);
  159. phallusEnlargement.print(" ");
  160. phallusEnlargement.print(hentai);
  161. phallusEnlargement.println("");
  162. }
  163. in2.close();
  164. phallusEnlargement.close();
  165. in.close();
  166. }
  167.  
  168. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement