結果

問題 No.1622 三角形の面積
ユーザー ks2mks2m
提出日時 2021-07-23 21:23:30
言語 Java21
(openjdk 21)
結果
AC  
実行時間 144 ms / 2,000 ms
コード長 340 bytes
コンパイル時間 1,928 ms
コンパイル使用メモリ 71,384 KB
実行使用メモリ 56,024 KB
最終ジャッジ日時 2023-09-25 21:05:19
合計ジャッジ時間 3,325 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
55,760 KB
testcase_01 AC 144 ms
55,752 KB
testcase_02 AC 143 ms
55,808 KB
testcase_03 AC 142 ms
56,024 KB
testcase_04 AC 144 ms
55,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();
		double d = 1.299038105676657;
		for (int z = 0; z < t; z++) {
			int r = sc.nextInt();
			double ans = r * r * d;
			System.out.println(ans);
		}
		sc.close();

		
	}
}
0