結果

問題 No.175 simpleDNA
ユーザー dazydazy
提出日時 2016-09-28 02:47:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 140 ms / 1,000 ms
コード長 430 bytes
コンパイル時間 4,025 ms
コンパイル使用メモリ 74,524 KB
実行使用メモリ 54,536 KB
最終ジャッジ日時 2024-05-01 06:07:13
合計ジャッジ時間 6,119 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 135 ms
54,156 KB
testcase_01 AC 136 ms
53,824 KB
testcase_02 AC 136 ms
54,144 KB
testcase_03 AC 135 ms
53,860 KB
testcase_04 AC 138 ms
54,100 KB
testcase_05 AC 137 ms
54,280 KB
testcase_06 AC 140 ms
54,536 KB
testcase_07 AC 137 ms
53,748 KB
testcase_08 AC 138 ms
53,924 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Run {
    final static double s = Math.sin(Math.PI/4) * 2;
    public static void main (String arg[]) {
        Scanner scan = new Scanner(System.in);
        int L = scan.nextInt();
        int N = scan.nextInt();
        String S;
        for (int i = 0; i < N; i++) {
            S = scan.next();
        }
        int ans = (int)Math.pow(2, L-3) * N;
        System.out.println(ans);
    }
}
0