結果
| 問題 | No.175 simpleDNA |
| コンテスト | |
| ユーザー |
ThhG_9l3
|
| 提出日時 | 2018-05-05 15:26:06 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 56 ms / 1,000 ms |
| コード長 | 454 bytes |
| 記録 | |
| コンパイル時間 | 2,476 ms |
| コンパイル使用メモリ | 82,124 KB |
| 実行使用メモリ | 43,104 KB |
| 最終ジャッジ日時 | 2026-03-16 10:57:53 |
| 合計ジャッジ時間 | 3,594 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
ソースコード
package yukikoda;
import java.util.Scanner;
public class gobe {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int L = sc.nextInt();
int N = sc.nextInt();
int sum = 1;
String[] str = new String[N];
for(int i=0; i<N; i++) {
str[i] = sc.next();
}
if(L == 3) {
System.out.println(N);
}
if(L > 3) {
for(int i=1; i<=L-3; i++) {
sum *= 2;
}
System.out.println(sum*N);
}
}
}
ThhG_9l3