結果

問題 No.175 simpleDNA
ユーザー TatsuDXTatsuDX
提出日時 2016-09-09 00:16:31
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 1,000 ms
コード長 273 bytes
コンパイル時間 3,410 ms
コンパイル使用メモリ 74,128 KB
実行使用メモリ 54,064 KB
最終ジャッジ日時 2024-04-27 18:12:54
合計ジャッジ時間 4,420 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
53,672 KB
testcase_01 AC 104 ms
52,588 KB
testcase_02 AC 115 ms
53,928 KB
testcase_03 AC 122 ms
54,064 KB
testcase_04 AC 106 ms
52,816 KB
testcase_05 AC 113 ms
53,912 KB
testcase_06 AC 108 ms
52,624 KB
testcase_07 AC 116 ms
53,976 KB
testcase_08 AC 124 ms
53,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Test {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int m = sc.nextInt()-3, n = sc.nextInt();
		String s = sc.nextLine();
		for(int i = 0; i < m; i++){
			n*=2;
		}
		System.out.println(n);
	}
}
0