結果
問題 | No.175 simpleDNA |
ユーザー |
|
提出日時 | 2018-02-10 15:53:45 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 54 ms / 1,000 ms |
コード長 | 466 bytes |
コンパイル時間 | 3,275 ms |
コンパイル使用メモリ | 73,292 KB |
実行使用メモリ | 36,968 KB |
最終ジャッジ日時 | 2024-10-14 13:51:41 |
合計ジャッジ時間 | 4,419 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
package me.yukicoder;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class No0175 {public static void main(String[] args) throws IOException {BufferedReader br = new BufferedReader(new InputStreamReader(System.in));int l = Integer.parseInt(br.readLine());int n = Integer.parseInt(br.readLine());String[] str = br.readLine().split(" ");System.out.println((int)Math.pow(2.0, l - 3) * n);}}