結果

問題 No.3021 データベースの練習
ユーザー koyumeishikoyumeishi
提出日時 2017-03-30 23:17:16
言語 Ruby
(3.3.0)
結果
AC  
実行時間 480 ms / 5,000 ms
コード長 191 bytes
コンパイル時間 140 ms
コンパイル使用メモリ 11,232 KB
実行使用メモリ 31,540 KB
平均クエリ数 2702.08
最終ジャッジ日時 2023-09-23 12:54:21
合計ジャッジ時間 6,003 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 193 ms
30,624 KB
testcase_01 AC 311 ms
31,012 KB
testcase_02 AC 375 ms
30,880 KB
testcase_03 AC 381 ms
31,540 KB
testcase_04 AC 369 ms
30,876 KB
testcase_05 AC 381 ms
31,132 KB
testcase_06 AC 220 ms
30,784 KB
testcase_07 AC 290 ms
31,104 KB
testcase_08 AC 361 ms
31,236 KB
testcase_09 AC 311 ms
30,744 KB
testcase_10 AC 290 ms
31,000 KB
testcase_11 AC 480 ms
31,204 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

Q = gets.to_i
1.upto(Q) do
  x0,x1, y0,y1 = gets.split.map(&:to_i)
  puts "SELECT count(*)
FROM point
WHERE
  (x BETWEEN #{x0} AND #{x1}) AND
  (y BETWEEN #{y0} AND #{y1});"
end

STDOUT.flush
0