結果
| 問題 |
No.175 simpleDNA
|
| コンテスト | |
| ユーザー |
koukonko
|
| 提出日時 | 2015-12-13 15:47:28 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 53 ms / 1,000 ms |
| コード長 | 444 bytes |
| コンパイル時間 | 2,052 ms |
| コンパイル使用メモリ | 73,728 KB |
| 実行使用メモリ | 37,168 KB |
| 最終ジャッジ日時 | 2024-09-15 11:42:53 |
| 合計ジャッジ時間 | 3,113 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
ソースコード
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
try {
int L = Integer.parseInt(read.readLine());
int N = Integer.parseInt(read.readLine());
read.readLine();
System.out.println((long) (Math.pow(2, (L - 3)) * N));
} catch (Exception e) {
e.printStackTrace();
}
}
}
koukonko