結果

問題 No.175 simpleDNA
ユーザー mits58
提出日時 2016-05-14 13:36:17
言語 Java
(openjdk 23)
結果
AC  
実行時間 110 ms / 1,000 ms
コード長 401 bytes
コンパイル時間 2,126 ms
コンパイル使用メモリ 74,044 KB
実行使用メモリ 41,388 KB
最終ジャッジ日時 2024-10-06 02:26:13
合計ジャッジ時間 3,879 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
	static long mod=(long)10E9;
    public static void main(String[] args){
        Scanner sc=new Scanner(System.in);
        while(sc.hasNext()){
        	int l=sc.nextInt();
        	int n=sc.nextInt();
			for(int i=0;i<n;i++){ String str=sc.next();}
			int res=1;
			for(int i=0;i<l-3;i++) res*=2;
			res*=n;
			System.out.println(res);
        }
    }
}
0