結果
問題 | No.1622 三角形の面積 |
ユーザー |
![]() |
提出日時 | 2022-01-10 20:58:42 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 157 ms / 2,000 ms |
コード長 | 332 bytes |
コンパイル時間 | 2,183 ms |
コンパイル使用メモリ | 74,696 KB |
実行使用メモリ | 54,260 KB |
最終ジャッジ日時 | 2024-11-14 11:03:17 |
合計ジャッジ時間 | 3,634 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 4 |
ソースコード
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int t = sc.nextInt(); for(int i=0; i<t; i++){ int r = sc.nextInt(); double ans = 1.299038105676657*r*r; System.out.println(ans); } } }