結果
問題 |
No.1178 Can you draw a Circle?
|
ユーザー |
![]() |
提出日時 | 2020-08-30 10:51:26 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 97 ms / 2,000 ms |
コード長 | 123 bytes |
コンパイル時間 | 69 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-11-14 18:07:50 |
合計ジャッジ時間 | 2,511 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
コンパイルメッセージ
Main.rb:2: warning: assigned but unused variable - a Main.rb:2: warning: assigned but unused variable - b Syntax OK
ソースコード
input = gets.split.map &:to_f a, b, c, d, e, f = input.map { _1 / input[0] } puts Math.sqrt(f - e + c * c / 4 + d * d / 4)