結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
30,840 KB
testcase_01 AC 104 ms
30,852 KB
testcase_02 AC 108 ms
31,072 KB
testcase_03 AC 109 ms
31,300 KB
testcase_04 AC 105 ms
31,504 KB
testcase_05 AC 107 ms
30,680 KB
testcase_06 AC 107 ms
31,272 KB
testcase_07 AC 106 ms
30,788 KB
testcase_08 AC 106 ms
30,924 KB
testcase_09 AC 107 ms
31,200 KB
testcase_10 AC 106 ms
30,920 KB
testcase_11 AC 106 ms
31,044 KB
testcase_12 AC 107 ms
31,252 KB
testcase_13 AC 106 ms
31,132 KB
testcase_14 AC 106 ms
31,032 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

puts '?0 0?1 0!'
$>.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