結果

問題 No.1429 Simple Dowsing
ユーザー yuruhiyayuruhiya
提出日時 2021-03-16 19:34:48
言語 Ruby
(3.3.0)
結果
AC  
実行時間 108 ms / 2,000 ms
コード長 74 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 11,444 KB
実行使用メモリ 31,380 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 10:10:51
合計ジャッジ時間 2,919 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
31,380 KB
testcase_01 AC 101 ms
30,992 KB
testcase_02 AC 101 ms
31,036 KB
testcase_03 AC 100 ms
31,192 KB
testcase_04 AC 98 ms
31,088 KB
testcase_05 AC 105 ms
30,924 KB
testcase_06 AC 105 ms
30,844 KB
testcase_07 AC 107 ms
30,856 KB
testcase_08 AC 107 ms
30,744 KB
testcase_09 AC 106 ms
31,056 KB
testcase_10 AC 106 ms
31,016 KB
testcase_11 AC 105 ms
31,016 KB
testcase_12 AC 106 ms
31,208 KB
testcase_13 AC 105 ms
31,000 KB
testcase_14 AC 105 ms
30,920 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

puts'?0 0?1 0!'
$>.flush
t=gets.to_i
p a=t-gets.to_i+1>>1,Math.sqrt(t-a*a)
0