ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2031. Overturned Numbers

No subject
Posted by Bakhodir Boydedaev 23 Jan 2015 23:49


Edited by author 27.01.2015 16:39
Re: wrong #4. is there any test ?. Help me... My code :
Posted by Bakhodir Boydedaev 27 Jan 2015 16:38
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 :
Posted by InstouT94 12 Feb 2015 23:16
You did not write a case of n=3..
Re: wrong #4. is there any test ?. Help me... My code :
Posted by Bakhodir Boydedaev 14 Feb 2015 22:18
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 s.egorov 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"