結果

問題 No.175 simpleDNA
ユーザー gu_21816943gu_21816943
提出日時 2017-06-26 02:09:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 54 ms / 1,000 ms
コード長 467 bytes
コンパイル時間 2,014 ms
コンパイル使用メモリ 74,208 KB
実行使用メモリ 50,372 KB
最終ジャッジ日時 2024-04-14 23:53:59
合計ジャッジ時間 3,060 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
49,932 KB
testcase_01 AC 53 ms
50,040 KB
testcase_02 AC 52 ms
50,292 KB
testcase_03 AC 54 ms
50,028 KB
testcase_04 AC 53 ms
50,348 KB
testcase_05 AC 52 ms
50,308 KB
testcase_06 AC 52 ms
50,164 KB
testcase_07 AC 51 ms
50,068 KB
testcase_08 AC 52 ms
50,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int len=Integer.parseInt(br.readLine());
		int pat=Integer.parseInt(br.readLine());
		br.readLine();
		br.close();
		int sum=1;
		int n=(len-3)/3;
		for(int i=0;i<n;i++){
			sum*=8;
		}
		System.out.println(sum*pat);
	}
}
0