結果
| 問題 | No.175 simpleDNA |
| コンテスト | |
| ユーザー |
maru
|
| 提出日時 | 2016-03-23 16:00:56 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 55 ms / 1,000 ms |
| + 933µs | |
| コード長 | 396 bytes |
| 記録 | |
| コンパイル時間 | 2,493 ms |
| コンパイル使用メモリ | 85,692 KB |
| 実行使用メモリ | 45,340 KB |
| 最終ジャッジ日時 | 2026-09-08 07:02:23 |
| 合計ジャッジ時間 | 4,231 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
}
}
maru