結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
30,588 KB
testcase_01 AC 102 ms
31,268 KB
testcase_02 AC 102 ms
30,728 KB
testcase_03 AC 100 ms
31,236 KB
testcase_04 AC 99 ms
31,264 KB
testcase_05 AC 99 ms
31,228 KB
testcase_06 AC 99 ms
30,936 KB
testcase_07 AC 100 ms
31,396 KB
testcase_08 AC 98 ms
30,960 KB
testcase_09 AC 101 ms
30,860 KB
testcase_10 AC 98 ms
30,820 KB
testcase_11 AC 95 ms
31,224 KB
testcase_12 AC 96 ms
30,944 KB
testcase_13 AC 97 ms
30,832 KB
testcase_14 AC 98 ms
31,368 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

puts '?0 0?1 0!'
STDOUT.flush
t = gets.to_i
u = gets.to_i
a = (t - u + 1) / 2
b = Math.sqrt(t - a * a)
puts a, b.to_i
0