結果

問題 No.175 simpleDNA
ユーザー fukuseifukusei
提出日時 2018-05-05 15:34:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 1,000 ms
コード長 431 bytes
コンパイル時間 1,940 ms
コンパイル使用メモリ 71,344 KB
実行使用メモリ 56,080 KB
最終ジャッジ日時 2023-09-10 10:33:29
合計ジャッジ時間 3,800 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,984 KB
testcase_01 AC 121 ms
55,908 KB
testcase_02 AC 122 ms
56,056 KB
testcase_03 AC 121 ms
55,660 KB
testcase_04 AC 121 ms
55,804 KB
testcase_05 AC 122 ms
55,548 KB
testcase_06 AC 122 ms
56,080 KB
testcase_07 AC 122 ms
56,064 KB
testcase_08 AC 124 ms
55,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class paiza {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        
        int length = sc.nextInt();
        int num = sc.nextInt();
        String codon[] = new String[num];
        
        for (int i = 0; i < num; i++) {
        	codon[i] = sc.next();
        }
        System.out.println( (int)Math.pow(2, (length - codon[0].length())) * num );
    }
}
0