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

What is wrong? WA#4
Posted by jack 29 Apr 2017 16:34
import java.util.Scanner;

public class ex2031 {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
     Scanner sc=new Scanner(System.in);
     int n=sc.nextInt();
     if(n==1){
         System.out.println("11");
     }else{
         if(n==2){
             System.out.println("11"+" "+"01");
         }else{
             if(n==3){
                 System.out.println("001"+" "+"66"+" "+"86");
             }else{
                 if(n==4){
                     System.out.println("16"+" "+"06"+" "+"68"+" "+"88");
                 }else{
                     System.out.println("Glupenky Pierre");
                 }
             }
         }
     }
    }

}
Re: What is wrong? WA#4
Posted by sergovoy 2 Dec 2017 15:40
Он не может использовать трёхзначные числа