結果
| 問題 | No.175 simpleDNA |
| コンテスト | |
| ユーザー |
koukonko
|
| 提出日時 | 2015-12-13 15:47:28 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 1,000 ms |
| コード長 | 444 bytes |
| 記録 | |
| コンパイル時間 | 1,685 ms |
| コンパイル使用メモリ | 81,068 KB |
| 実行使用メモリ | 39,040 KB |
| 最終ジャッジ日時 | 2026-04-04 19:31:25 |
| 合計ジャッジ時間 | 2,554 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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