|
|
back to boardNo subject Edited by author 27.01.2015 16:39 Re: wrong #4. is there any test ?. Help me... My code : import java.util.Scanner; /** * Created by Coder on 23.01.2015. */ public class OverturnedNumbers2031_ { public static void main(String[] args) { Scanner x = new Scanner(System.in); int n = x.nextInt(); if (n == 1) { System.out.println("01"); } else if (n == 2) { System.out.println("11 01"); } else if (n == 4) { System.out.println("16 06 68 88"); } else { System.out.println("Glupenky Pierre"); } } } Re: wrong #4. is there any test ?. Help me... My code : You did not write a case of n=3.. Re: wrong #4. is there any test ?. Help me... My code : Thanks a lot of.I got it. n = 3 -> "16 06 68"; Edited by author 14.02.2015 22:43 Re: wrong #4. is there any test ?. Help me... My code : Posted by ImgJ 13 Apr 2015 22:52 The best solution ever xD Re: No subject Posted by Xayyam 14 Dec 2015 12:56 Why only 4 cases ?? Not all these are ok ?? "11", "01", "08", "06", "09", "10", "18", "16", "19", "80", "81", "86", "88", "89", "60", "68", "61", "66", "69", "90", "91", "98", "96", "99" |
|
|