結果

問題 No.1551 誕生日の三角形
ユーザー tamura2004tamura2004
提出日時 2021-06-22 08:08:09
言語 Crystal
(1.11.2)
結果
AC  
実行時間 3 ms / 1,000 ms
コード長 120 bytes
コンパイル時間 21,349 ms
コンパイル使用メモリ 265,208 KB
実行使用メモリ 4,664 KB
最終ジャッジ日時 2023-09-05 08:58:33
合計ジャッジ時間 22,603 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
4,584 KB
testcase_01 AC 2 ms
4,576 KB
testcase_02 AC 3 ms
4,592 KB
testcase_03 AC 2 ms
4,592 KB
testcase_04 AC 2 ms
4,664 KB
testcase_05 AC 2 ms
4,504 KB
testcase_06 AC 2 ms
4,624 KB
testcase_07 AC 2 ms
4,512 KB
testcase_08 AC 2 ms
4,660 KB
testcase_09 AC 2 ms
4,664 KB
testcase_10 AC 3 ms
4,664 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s2 = gets.to_s.to_f64
s = s2 / 2
a  = b = c = s2 / 3
ans2 = s * (s - a) * (s - b) * (s - c)
ans = Math.sqrt ans2
pp ans
0