Submission #929481


Source Code Expand

Copy
    import java.util.Scanner;
     
    public class Main{
     
    static int ruijo(int n, int r){
      if(r == 0) return 1;
      else return n*ruijo(n,r-1);
    }
     
      public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt(), K = sc.nextInt();
        System.out.println(K*ruijo(N-1,K-1));
      }
    }

Submission Info

Submission Time
Task B - Painting Balls with AtCoDeer
User rit03cv
Language Java8 (OpenJDK 1.8.0)
Score 0
Code Size 386 Byte
Status WA
Exec Time 132 ms
Memory 9804 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
AC × 1
WA × 2
AC × 1
WA × 9
Set Name Test Cases
Sample 0_000.txt, 0_001.txt, 0_002.txt
All 0_000.txt, 0_001.txt, 0_002.txt, 1_003.txt, 1_004.txt, 1_005.txt, 1_006.txt, 1_007.txt, 1_008.txt, 1_009.txt
Case Name Status Exec Time Memory
0_000.txt AC 127 ms 9680 KB
0_001.txt WA 123 ms 9796 KB
0_002.txt WA 125 ms 9676 KB
1_003.txt WA 125 ms 9680 KB
1_004.txt WA 125 ms 9676 KB
1_005.txt WA 132 ms 9556 KB
1_006.txt WA 124 ms 9680 KB
1_007.txt WA 126 ms 9672 KB
1_008.txt WA 125 ms 9804 KB
1_009.txt WA 123 ms 9684 KB