結果

問題 No.57 ミリオンダイス
ユーザー shinshin
提出日時 2022-05-17 07:51:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 44 ms / 5,000 ms
コード長 635 bytes
コンパイル時間 6,374 ms
コンパイル使用メモリ 73,084 KB
実行使用メモリ 49,792 KB
最終ジャッジ日時 2023-10-13 03:48:51
合計ジャッジ時間 4,650 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
49,348 KB
testcase_01 AC 42 ms
49,520 KB
testcase_02 AC 43 ms
49,492 KB
testcase_03 AC 43 ms
49,352 KB
testcase_04 AC 43 ms
49,496 KB
testcase_05 AC 43 ms
49,416 KB
testcase_06 AC 44 ms
49,448 KB
testcase_07 AC 43 ms
49,628 KB
testcase_08 AC 43 ms
49,460 KB
testcase_09 AC 43 ms
49,456 KB
testcase_10 AC 43 ms
49,792 KB
testcase_11 AC 44 ms
49,536 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

public class No57 {

	public static void main(String[] args) throws IOException{
		//ミリオンダイス
		System.out.println(Double.parseDouble(readStr()[0]) * 3.5);

	}
	
	public static String[] readStr() throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<String> list = new ArrayList<>();

		do {
			list.add(br.readLine());
		}while(br.ready());

		br.close();

		String[] text = new String[list.size()];
		list.toArray(text);

		return text;

	}

}
0