Submission #8779893


Source Code Expand

import java.util.*;
 
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int M = sc.nextInt();
    int ans = 1;
    for (int i = 0;i < M;i ++) {
      ans *= 2;
    }
    ans *= ((N - M) * 100 +  M * 1900);
    System.out.println(ans);
  }
}

Submission Info

Submission Time
Task C - HSI
User hirokato
Language Java8 (OpenJDK 1.8.0)
Score 300
Code Size 338 Byte
Status AC
Exec Time 97 ms
Memory 21716 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 3
AC × 14
Set Name Test Cases
Sample example_0, example_1, example_2
All example_0, example_1, example_2, handmade_0, rand_0, rand_1, rand_2, rand_3, rand_4, rand_5, rand_6, rand_7, rand_8, rand_9
Case Name Status Exec Time Memory
example_0 AC 91 ms 18644 KB
example_1 AC 92 ms 20564 KB
example_2 AC 92 ms 19412 KB
handmade_0 AC 93 ms 19284 KB
rand_0 AC 93 ms 16980 KB
rand_1 AC 92 ms 18640 KB
rand_2 AC 92 ms 21716 KB
rand_3 AC 93 ms 21716 KB
rand_4 AC 91 ms 19796 KB
rand_5 AC 97 ms 21460 KB
rand_6 AC 91 ms 19668 KB
rand_7 AC 93 ms 20052 KB
rand_8 AC 92 ms 19668 KB
rand_9 AC 95 ms 21204 KB