結果
問題 | No.175 simpleDNA |
ユーザー |
![]() |
提出日時 | 2018-05-05 15:34:05 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 138 ms / 1,000 ms |
コード長 | 431 bytes |
コンパイル時間 | 2,279 ms |
コンパイル使用メモリ | 74,652 KB |
実行使用メモリ | 41,496 KB |
最終ジャッジ日時 | 2024-06-28 01:57:30 |
合計ジャッジ時間 | 3,851 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
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 ); } }