fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. Scanner s = new Scanner(System.in);
  13. ArrayList<String> list = new ArrayList<String>();
  14. while (s.hasNextLine()) {
  15.  
  16. String newLine = s.nextLine().replace("||","");
  17. list.add(newLine);
  18. }
  19. s.close();
  20. for (String string : list) {
  21. System.out.println(string);
  22. }
  23. }
  24. }
Success #stdin #stdout 0.06s 711680KB
stdin
||= (N ) =|| 1|| 0.938 || --- || 0.5 || (****)|| 0.5 || 0 || 0 || 0 || 0.700 || (p)=2212, (n)=2112 ||

||= (\Delta ) =|| 2|| 1.232 || 0.118 || 1.5 || (****)|| 1.5 || 0 || 0 || 3 || 1.076 || (\Delta^{++})=2224, (\Delta^+)=2214, (\Delta^0)=2114, (\Delta^-)=1114 ||

||= (P_{11}(1440) ) =|| 3|| 1.462 || 0.391 || 0.5 || (****)|| 0.5 || 0 || 0 || 3 || 1.076 || 202212, 202112 ||

||= (S_{11}(1535) ) =|| 4|| 1.534 || 0.151 || 0.5 || ( ***)|| 0.5 || 0 || 0 || 3 || 1.076 || 102212, 102112 ||
stdout
= (N ) = 1 0.938  ---  0.5  (****) 0.5  0  0  0  0.700  (p)=2212, (n)=2112 

= (\Delta ) = 2 1.232  0.118  1.5  (****) 1.5  0  0  3  1.076  (\Delta^{++})=2224, (\Delta^+)=2214, (\Delta^0)=2114, (\Delta^-)=1114 

= (P_{11}(1440) ) = 3 1.462  0.391  0.5  (****) 0.5  0  0  3  1.076  202212, 202112 

= (S_{11}(1535) ) = 4 1.534  0.151  0.5  ( ***) 0.5  0  0  3  1.076  102212, 102112