結果
問題 |
No.3151 natural math of inscribed circle
|
ユーザー |
![]() |
提出日時 | 2025-05-29 06:37:37 |
言語 | C# (.NET 8.0.404) |
結果 |
WA
|
実行時間 | - |
コード長 | 482 bytes |
コンパイル時間 | 19,232 ms |
コンパイル使用メモリ | 170,388 KB |
実行使用メモリ | 187,292 KB |
最終ジャッジ日時 | 2025-05-29 06:38:01 |
合計ジャッジ時間 | 12,499 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | WA * 40 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (98 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using static System.Math; using System; public class Hello { static void Main() { string[] line = Console.ReadLine().Trim().Split(' '); var a = int.Parse(line[0]); var b = int.Parse(line[1]); var c = int.Parse(line[2]); getAns(a, b, c); } static void getAns(int a, int b, int c) { var s = (a + b + c) / 2; var aa = Sqrt((double)s * (s - a) * (s - b) * (s - c)); Console.WriteLine(aa / s); } }