結果

問題 No.175 simpleDNA
ユーザー spacenautspacenaut
提出日時 2016-05-22 16:11:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 139 ms / 1,000 ms
コード長 300 bytes
コンパイル時間 2,094 ms
コンパイル使用メモリ 73,736 KB
実行使用メモリ 41,536 KB
最終ジャッジ日時 2024-04-16 06:48:03
合計ジャッジ時間 4,004 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 139 ms
41,388 KB
testcase_01 AC 135 ms
41,260 KB
testcase_02 AC 133 ms
41,080 KB
testcase_03 AC 136 ms
41,408 KB
testcase_04 AC 134 ms
41,532 KB
testcase_05 AC 135 ms
41,536 KB
testcase_06 AC 134 ms
41,332 KB
testcase_07 AC 134 ms
41,212 KB
testcase_08 AC 137 ms
41,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class No0175{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int l = sc.nextInt() - 3;
		int n = sc.nextInt();
		int sum = (int)Math.pow(2, l) * n;
		String s;
		for(int i = 0 ; i < n; i++){
			s = sc.next();
		}
		System.out.println(sum);
	}
}
0