結果
問題 | No.175 simpleDNA |
ユーザー |
![]() |
提出日時 | 2016-03-23 16:00:56 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 131 ms / 1,000 ms |
コード長 | 396 bytes |
コンパイル時間 | 3,475 ms |
コンパイル使用メモリ | 74,444 KB |
実行使用メモリ | 54,276 KB |
最終ジャッジ日時 | 2024-10-01 21:30:42 |
合計ジャッジ時間 | 5,253 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
import java.util.Scanner; public class yukicoder_175 { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int l = stdIn.nextInt(); int n = stdIn.nextInt(); String[] dna = new String[n]; int tori = 0; for (int i = 0; i < n; i++) { dna[i] = stdIn.next(); tori += Math.pow(2, l - dna[i].length()); } System.out.println(tori); } }